Go to the documentation of this file.
212 return get(s, b, p, r, c);
377 return get(s, b, p, r, c);
487 double (&my_func)(
double),
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.
Numeric get(Index s, Index b, Index p, Index r, Index c) const
Get element implementation without assertions.
Tensor5View & operator-=(Numeric x)
Subtraction of scalar.
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.
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.
friend void swap(Tensor5 &t1, Tensor5 &t2)
Swaps two objects.
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.
Numeric get(Index s, Index b, Index p, Index r, Index c) const
Get element implementation without assertions.
Range mrr
The row range of mdata that is actually used.
ConstIterator5D begin() const
Return const iterator to first shelf.
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.
Numeric & get(Index s, Index b, Index p, Index r, Index c)
Get element implementation without assertions.
A constant view of a Matrix.
Tensor5 & operator=(Tensor5 x)
Assignment operator from another tensor.
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.
std::ostream & operator<<(std::ostream &os, const ConstTensor5View &v)
Output operator.
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.