80 seq(
double length = 0);
107 seq(
double begin,
double end,
double step = 1);
117 seq(
seq afs,
bool is_gfor);
222 operator array()
const;
225 void init(
double begin,
double end,
double step);
double step
Step size between sequence values.
seq operator*(double x)
Multiplication operator spaces the sequence by a factor x.
seq operator-()
Negation operator creates a sequence with the signs negated.
size_t size
Get's the length of the sequence.
double begin
Start position of the sequence.
friend seq operator*(double x, seq y)
double end
End position of the sequence (inclusive)
bool m_gfor
Flag for gfor.
AFAPI af_seq af_make_seq(double begin, double end, double step)
seq is used to create seq for indexing af::array
seq operator-(double x)
Subtraction operator offsets the begin and end by x.
friend seq operator+(double x, seq y)
C-style struct to creating sequences for indexing.
af_seq s
Get the af_seq C-style struct.
friend seq operator-(double x, seq y)
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
static const af_seq af_span
seq operator+(double x)
Addition operator offsets the begin and end by x.