Documentation
Main Page
Download & Install
Examples
Getting Started
Project Setup
GFOR Usage
Graphics
ArrayFire Pro
Release Notes
Functions
gfor.h (2014-04-30 15:38:09 -0400, (build fd32605))
Go to the documentation of this file.
1
#pragma once
2
3
#ifdef __cplusplus
4
5
#include "
defines.h
"
6
namespace
af {
7
88
AFAPI
array
local
(
const
array& variable);
102
AFAPI
array
gfor
(
double
n);
103
107
AFAPI
array
gfor
(
double
first,
double
last);
108
112
AFAPI
array
gfor
(
double
first,
double
inc,
double
last);
113
126
#define gfor(var,...) for (var = af::gfor(__VA_ARGS__); af::gfor_toggle(); )
128
129
// gfor
130
131
132
// Toggles internal state related to gfor().
133
AFAPI
bool
gfor_toggle
();
// internal
134
135
};
// namespace af
136
#endif // __cplusplus
af::local
array local(const array &variable)
Indicate when a variable is unique to each iteration, i.e.
af::gfor
array gfor(double n)
Do not use this function directly; see GFOR: Parallel For-Loops.
defines.h
AFAPI
#define AFAPI
Definition:
defines.h:45
af::gfor_toggle
bool gfor_toggle()