80 seq(
double length = 0);
117 seq(
seq afs,
bool is_gfor);
222 operator array()
const;
double step
Step size between sequence values.
Definition: seq.h:28
Definition: algorithm.h:14
seq operator*(double x)
Multiplication operator spaces the sequence by a factor x.
Definition: seq.h:199
seq operator-()
Negation operator creates a sequence with the signs negated.
Definition: seq.h:149
size_t size
Get's the length of the sequence.
Definition: seq.h:56
double begin
Start position of the sequence.
Definition: seq.h:22
friend seq operator*(double x, seq y)
Definition: seq.h:205
double end
End position of the sequence (inclusive)
Definition: seq.h:25
bool m_gfor
Flag for gfor.
Definition: seq.h:61
AFAPI af_seq af_make_seq(double begin, double end, double step)
static af::array array(af::dim4 idims, cl_mem buf, af::dtype type, bool retain=false)
Create an af::array object from an OpenCL cl_mem buffer.
Definition: opencl.h:329
seq is used to create seq for indexing af::array
Definition: seq.h:45
seq operator-(double x)
Subtraction operator offsets the begin and end by x.
Definition: seq.h:181
#define AFAPI
Definition: defines.h:31
friend seq operator+(double x, seq y)
Definition: seq.h:201
C-style struct to creating sequences for indexing.
Definition: seq.h:20
af_seq s
Get the af_seq C-style struct.
Definition: seq.h:51
friend seq operator-(double x, seq y)
Definition: seq.h:203
static const af_seq af_span
Definition: seq.h:31
seq operator+(double x)
Addition operator offsets the begin and end by x.
Definition: seq.h:164