Go to the documentation of this file.
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);
seq is used to create sequences for indexing af::array
seq operator-()
Negation operator creates a sequence with the signs negated.
friend seq operator*(double x, seq y)
size_t size
Get's the length of the sequence.
seq operator*(double x)
Multiplication operator spaces the sequence by a factor x.
double end
End position of the sequence (inclusive)
AFAPI af_seq af_make_seq(double begin, double end, double step)
Create a new af_seq object.
double begin
Start position of the sequence.
seq operator-(double x)
Subtraction operator offsets the begin and end by x.
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.
bool m_gfor
Flag for gfor.
static const af_seq af_span
AFAPI seq span
A special value representing the entire axis of an af::array.
af_seq s
Get the af_seq C-style struct.
friend seq operator-(double x, seq y)
double step
Step size between sequence values.
seq operator+(double x)
Addition operator offsets the begin and end by x.
AFAPI int end
A special value representing the last value of an axis.
C-style struct to creating sequences for indexing.
friend seq operator+(double x, seq y)