ArrayFire: gfor.h Source File (original) (raw)
Go to the documentation of this file.
1/*******************************************************
2 * Copyright (c) 2014, ArrayFire
3 * All rights reserved.
4 *
5 * This file is distributed under 3-clause BSD license.
6 * The complete license agreement can be obtained at:
7 * http://arrayfire.com/licenses/BSD-3-Clause
8 ********************************************************/
9
10#pragma once
13
14
15#ifdef __cplusplus
16namespace af
17{
18class array;
19class dim4;
20
24
25
26#define gfor(var, ...) for (var = af::seq(af::seq(__VA_ARGS__), true); af::gforToggle(); )
27
30
31}
32#endif
A multi dimensional data container.
AFAPI void gforSet(bool val)
array(* batchFunc_t)(const array &lhs, const array &rhs)
AFAPI array batchFunc(const array &lhs, const array &rhs, batchFunc_t func)