ArrayFire: gfor.h File Reference (original) (raw)
#include <[af/defines.h](defines%5F8h%5Fsource.htm)>#include <[af/seq.h](seq%5F8h%5Fsource.htm)>
Go to the source code of this file.
| Namespaces | |
|---|---|
| namespace | af |
| Macros | |
|---|---|
| #define | gfor(var, ...) for (var = af::seq(af::seq(__VA_ARGS__), true); af::gforToggle(); ) |
| Typedefs | |
|---|---|
| typedef array(* | batchFunc_t) (const array &lhs, const array &rhs) |
| Functions | |
|---|---|
| AFAPI bool | gforToggle () |
| AFAPI bool | gforGet () |
| AFAPI void | gforSet (bool val) |
| AFAPI array | batchFunc (const array &lhs, const array &rhs, batchFunc_t func) |
Macro Definition Documentation
| #define gfor | ( | | var, | | ------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ---- | | | ... | | | | | ) | for (var = af::seq(af::seq(__VA_ARGS__), true); af::gforToggle(); ) | | |
Examples
getting_started/rainfall.cpp, getting_started/vectorize.cpp, and machine_learning/kmeans.cpp.