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.
Definition array.h:27
seq is used to create seq for indexing af::array
Definition seq.h:46
bool m_gfor
Flag for gfor.
Definition seq.h:61
friend seq operator+(double x, seq y)
Definition seq.h:201
seq operator-()
Negation operator creates a sequence with the signs negated.
Definition seq.h:149
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.
Definition seq.h:51
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.
Definition seq.h:164
friend seq operator*(double x, seq y)
Definition seq.h:205
seq(seq afs, bool is_gfor)
Copy constructor.
size_t size
Get's the length of the sequence.
Definition seq.h:56
seq operator*(double x)
Multiplication operator spaces the sequence by a factor x.
Definition seq.h:199
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.
Definition seq.h:181
friend seq operator-(double x, seq y)
Definition seq.h:203
#define AFAPI
Definition defines.h:31
Definition algorithm.h:15
static const af_seq af_span
Definition seq.h:31
AFAPI af_seq af_make_seq(double begin, double end, double step)
C-style struct to creating sequences for indexing.
Definition seq.h:20
double end
End position of the sequence (inclusive)
Definition seq.h:25
double step
Step size between sequence values.
Definition seq.h:28
double begin
Start position of the sequence.
Definition seq.h:22