Go to the documentation of this file.
41 dim4(
const dim4& other);
50 dim4(
const unsigned ndims,
const dim_t *
const dims);
56 dim_t elements()
const;
80 dim_t& operator[](
const unsigned dim);
84 const dim_t& operator[](
const unsigned dim)
const;
87 dim_t *get() {
return dims; }
90 const dim_t* get()
const {
return dims; }
111 ostr << dims[0] <<
" "
Generic object that represents size and shape.
AFAPI array operator!=(const array &lhs, const array &rhs)
Performs an inequality operation on two arrays or an array and a value.
AFAPI array operator==(const array &lhs, const array &rhs)
Performs an equality operation on two arrays or an array and a value.
AFAPI dim_t calcDim(const af_seq &seq, const dim_t &parentDim)
Returns the number of elements that will be represented by seq if applied on an array.
AFAPI array operator-(const array &lhs, const array &rhs)
Subtracts two arrays or an array and a value.
AFAPI size_t seqElements(const af_seq &seq)
Returns the number of elements that the af_seq object represents.
AFAPI array operator>>(const array &lhs, const array &rhs)
Performs an right shift operation on two arrays or an array and a value.
AFAPI array operator*(const array &lhs, const array &rhs)
Multiplies two arrays or an array and a value.
AFAPI bool isSpan(const af_seq &seq)
Returns true if the af_seq object represents the entire range of an axis.
AFAPI array operator+(const array &lhs, const array &rhs)
Adds two arrays or an array and a value.
AFAPI array operator<<(const array &lhs, const array &rhs)
Performs an left shift operation on two arrays or an array and a value.
C-style struct to creating sequences for indexing.