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