bool operator!=(const Iterator5D &other) const
Not equal operator, needed for algorithms like copy.
bool operator!=(const ConstIterator5D &other) const
Not equal operator, needed for algorithms like copy.
Index nbooks() const
Returns the number of books.
Range mpr
The page range of mdata that is actually used.
Tensor5View & operator+=(Numeric x)
Addition of scalar.
Iterator5D(const Tensor4View &x, Index stride)
Explicit constructor.
Tensor5()
Default constructor.
Tensor5View & operator-=(Numeric x)
Subtraction of scalar.
ostream & operator<<(ostream &os, const ConstTensor5View &v)
Output operator.
Tensor4View & operator*()
Dereferencing.
Index ncols() const
Returns the number of columns.
virtual ~ConstTensor5View()
Destructor.
A constant view of a Tensor7.
Range mbr
The book range of mdata that is actually used.
ConstTensor5View operator()(const Range &s, const Range &b, const Range &p, const Range &r, const Range &c) const
Const index operator for subrange.
Numeric debug_tensor5view_get_elem(Tensor5View &tv, Index s, Index b, Index p, Index r, Index c)
Helper function to access tensor elements.
Tensor5 & operator=(const Tensor5 &x)
Assignment operator from another tensor.
Range mbr
The book range of mdata that is actually used.
Tensor4View * operator->()
The -> operator is needed, so that we can write i->begin() to get the 4D iterators.
Range mcr
The column range of mdata that is actually used.
Iterator5D()
Default constructor.
Index mstart
The start index.
Range msr
The shelf range of mdata that is actually used.
void transform(Tensor5View y, double(&my_func)(double), ConstTensor5View x)
A generic transform function for tensors, which can be used to implement mathematical functions opera...
Implementation of Tensors of Rank 5.
ConstIterator5D(const ConstTensor4View &x, Index stride)
Explicit constructor.
Numeric max(const ConstTensor5View &x)
Max function, tensor version.
ConstIterator5D & operator++()
Prefix increment operator.
Index npages() const
Returns the number of pages.
void copy(ConstIterator5D origin, const ConstIterator5D &end, Iterator5D target)
Copy data between begin and end to target.
ConstIterator5D begin() const
Return const iterator to first shelf.
A constant view of a Tensor4.
Numeric operator()(Index s, Index b, Index p, Index r, Index c) const
Plain const index operator.
ConstTensor5View operator()(const Range &s, const Range &b, const Range &p, const Range &r, const Range &c) const
Const index operator for subrange.
Numeric operator()(Index s, Index b, Index p, Index r, Index c) const
Plain const index operator.
Tensor5View & operator/=(Numeric x)
Division by scalar.
Numeric & operator()(Index s, Index b, Index p, Index r, Index c)
Plain const index operator.
void resize(Index s, Index b, Index p, Index r, Index c)
Resize function.
Const version of Iterator6D.
const ConstTensor4View & operator*() const
Dereferencing.
const Numeric * get_c_array() const
Conversion to plain C-array.
virtual ~Tensor5()
Destructor for Tensor5.
Range mrr
The row range of mdata that is actually used.
ConstIterator5D begin() const
Return const iterator to first shelf.
ConstIterator5D(const ConstIterator5D &o)
Copy constructor.
A constant view of a Tensor6.
NUMERIC Numeric
The type to use for all floating point numbers.
ConstIterator5D end() const
Return const iterator behind last shelf.
ConstTensor5View()
Default constructor.
Range mcr
The column range of mdata that is actually used.
virtual ~Tensor5View()
Destructor.
Numeric min(const ConstTensor5View &x)
Min function, tensor version.
The outermost iterator class for rank 6 tensors.
A constant view of a Matrix.
Tensor5View()
Default constructor.
Iterator5D & operator++()
Prefix increment operator.
Index mextent
The number of elements.
const ConstTensor4View * operator->() const
The -> operator is needed, so that we can write i->begin() to get the 4D iterators.
Index nrows() const
Returns the number of rows.
Tensor5View & operator=(const ConstTensor5View &v)
Assignment operator.
Range mpr
The page range of mdata that is actually used.
ConstTensor4View msv
Current position.
Index nshelves() const
Returns the number of shelves.
Iterator5D(const Iterator5D &o)
Copy constructor.
Range mrr
The row range of mdata that is actually used.
A constant view of a Tensor3.
Numeric * mdata
Pointer to the plain C array that holds the data.
INDEX Index
The type to use for all integer numbers and indices.
Const version of Iterator5D.
Tensor4View msv
Current position.
A constant view of a Vector.
ConstIterator5D end() const
Return const iterator behind last shelf.
ConstIterator5D()
Default constructor.
Numeric * mdata
Pointer to the plain C array that holds the data.
Tensor5View & operator*=(Numeric x)
Multiplication by scalar.
A constant view of a Tensor5.