80 seq(
double length = 0);
107 seq(
double begin,
double end,
double step = 1);
225 void init(
double begin,
double end,
double step);
A multi dimensional data container.
seq is used to create sequences for indexing af::array
bool m_gfor
Flag for gfor.
seq(seq other, bool is_gfor)
Copy constructor.
friend seq operator+(double x, seq y)
seq operator-()
Negation operator creates a sequence with the signs negated.
seq(double length=0)
Creates a sequence of size length as [0, 1, 2..., length - 1].
af_seq s
Get the af_seq C-style struct.
seq(double begin, double end, double step=1)
Creates a sequence starting at begin, ending at or before end (inclusive) with increments as step.
seq operator+(double x)
Addition operator offsets the begin and end by x.
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.
seq(const af_seq &s_)
Create a seq object from an af_seq struct.
seq & operator=(const af_seq &s)
Assignment operator to create a new sequence from an af_seq.
seq operator-(double x)
Subtraction operator offsets the begin and end by x.
friend seq operator-(double x, seq y)
AFAPI int end
A special value representing the last value of an axis.
AFAPI seq span
A special value representing the entire axis of an af::array.
static const af_seq af_span
AFAPI af_seq af_make_seq(double begin, double end, double step)
Create a new af_seq object.
C-style struct to creating sequences for indexing.
double end
End position of the sequence (inclusive)
double step
Step size between sequence values.
double begin
Start position of the sequence.