Do more. Code less. Free software for GPU computing.
<scroll to top>

gfor.h

Go to the documentation of this file.
00001 #pragma once
00002 
00003 #ifdef __cplusplus
00004 
00005 #include "defines.h"
00006 namespace af {
00007 
00147 
00148 AFAPI array gfor(double n);
00150 AFAPI array gfor(double first, double last);
00152 AFAPI array gfor(double first, double inc, double last);
00153 
00204 AFAPI array local(const array& variable);
00205 
00206 // gfor
00208 // macro to allow for-loop syntax
00209 #define gfor(var,...)  for (var = af::gfor(__VA_ARGS__); af::gfor_toggle(); )
00210 // Toggles internal state related to gfor().
00211 AFAPI bool gfor_toggle(); // internal
00212 
00213 }; // namespace af
00214 #endif // __cplusplus
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines