Go to the documentation of this file.
384 double (&my_func)(
double),
405 #endif // matpackIII_h
bool operator!=(const Iterator3D &other) const
Not equal operator, needed for algorithms like copy.
void copy(ConstIterator3D origin, const ConstIterator3D &end, Iterator3D target)
Copy data between begin and end to target.
Tensor3View()
Default constructor.
ConstIterator3D end() const
Return const iterator behind last row.
void transform(Tensor3View y, double(&my_func)(double), ConstTensor3View x)
A generic transform function for tensors, which can be used to implement mathematical functions opera...
Numeric & operator()(Index p, Index r, Index c)
Plain non-const index operator.
ConstTensor3View operator()(const Range &p, const Range &r, const Range &c) const
Const index operator for subrange.
Iterator3D()
Default constructor.
A constant view of a Tensor7.
Const version of Iterator3D.
Numeric * mdata
Pointer to the plain C array that holds the data.
ConstTensor3View()
Default constructor.
ConstTensor3View operator()(const Range &p, const Range &r, const Range &c) const
Const index operator for subrange.
virtual ~Tensor3()
Destructor for Tensor3.
Index mstart
The start index.
Range mcr
The column range of mdata that is actually used.
const ConstMatrixView & operator*() const
Dereferencing.
void resize(Index p, Index r, Index c)
Resize function.
Tensor3View & operator-=(Numeric x)
Subtraction of scalar.
Index npages() const
Returns the number of pages.
Range mrr
The row range of mdata that is actually used.
Numeric min(const ConstTensor3View &x)
Min function, tensor version.
Const version of Iterator4D.
A constant view of a Tensor4.
Implementation of Tensors of Rank 3.
MatrixView & operator*()
Dereferencing.
ConstIterator3D begin() const
Return const iterator to first page.
Numeric get(Index p, Index r, Index c) const
Get element implementation without assertions.
Range mrr
The row range of mdata that is actually used.
Range mcr
The column range of mdata that is actually used.
Numeric debug_tensor3view_get_elem(Tensor3View &tv, Index p, Index r, Index c)
Helper function to access tensor elements.
Iterator3D & operator++()
Prefix increment operator.
Iterator3D(const MatrixView &x, Index stride)
Explicit constructor.
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 * mdata
Pointer to the plain C array that holds the data.
Tensor3View & operator/=(Numeric x)
Division by scalar.
MatrixView msv
Current position.
Index nrows() const
Returns the number of rows.
Tensor3 & operator=(Tensor3 x)
Assignment operator from another tensor.
A constant view of a Matrix.
Tensor3View & operator*=(Numeric x)
Multiplication by scalar.
Numeric operator()(Index p, Index r, Index c) const
Plain const index operator.
ConstIterator3D end() const
Return const iterator behind last page.
Numeric get(Index p, Index r, Index c) const
Get element implementation without assertions.
Numeric max(const ConstTensor3View &x)
Max function, tensor version.
Index mextent
The number of elements.
friend void swap(Tensor3 &t1, Tensor3 &t2)
Swaps two objects.
ConstMatrixView msv
Current position.
Implementation of Tensors of Rank 4.
virtual ~Tensor3View()
Destructor.
Index ncols() const
Returns the number of columns.
ConstIterator3D begin() const
Return const iterator to first row.
A constant view of a Tensor3.
std::ostream & operator<<(std::ostream &os, const ConstTensor3View &v)
Output operator.
Numeric & get(Index p, Index r, Index c)
Get element implementation without assertions.
ConstIterator3D & operator++()
Prefix increment operator.
ConstIterator3D()
Default constructor.
Tensor3View & operator+=(Numeric x)
Addition of scalar.
virtual ~ConstTensor3View()
Destructor.
INDEX Index
The type to use for all integer numbers and indices.
bool operator!=(const ConstIterator3D &other) const
Not equal operator, needed for algorithms like copy.
Tensor3View & operator=(const ConstTensor3View &v)
Assignment operator.
const ConstMatrixView * operator->() const
The -> operator is needed, so that we can write i->begin() to get the 1D iterators.
const Numeric * get_c_array() const
Conversion to plain C-array.
ConstIterator3D(const ConstMatrixView &x, Index stride)
Explicit constructor.
MatrixView * operator->()
The -> operator is needed, so that we can write i->begin() to get the 1D iterators.
A constant view of a Vector.
Tensor3()
Default constructor.
Numeric operator()(Index p, Index r, Index c) const
Plain const index operator.
A constant view of a Tensor5.
void mult(Tensor3View A, const ConstVectorView B, const ConstMatrixView C)
mult Tensor3