A high-performance general-purpose compute library
gfor.h File Reference
#include <af/defines.h>
#include <af/seq.h>

Go to the source code of this file.

Namespaces

namespace  af
 

Macros

#define gfor(var, ...)
 

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

◆ gfor

#define gfor ( var,
... )
Value:
for (var = af::seq(af::seq(__VA_ARGS__), true); af::gforToggle(); )
seq is used to create sequences for indexing af::array
Definition seq.h:46
AFAPI bool gforToggle()
Examples
getting_started/rainfall.cpp, getting_started/vectorize.cpp, and machine_learning/kmeans.cpp.

Definition at line 26 of file gfor.h.