Go to the documentation of this file.
1952 double (&my_func)(
double),
1971 #endif // matpackVII_h
Const version of Iterator7D.
Index nshelves() const
Returns the number of shelves.
ConstIterator7D end() const
Return const iterator behind last sub-tensor.
Numeric min(const ConstTensor7View &x)
Min function, tensor version.
Range mvr
The vitrine range of mdata that is actually used.
Range msr
The shelf range of mdata that is actually used.
ostream & operator<<(ostream &os, const ConstTensor7View &v)
Output operator.
Range mbr
The book range of mdata that is actually used.
Index ncols() const
Returns the number of columns.
A constant view of a Tensor7.
Tensor7View & operator-=(Numeric x)
Subtraction of scalar.
Range mrr
The row range of mdata that is actually used.
Range mlr
The library range of mdata that is actually used.
const ConstTensor6View & operator*() const
Dereferencing.
Implementation of Tensors of Rank 7.
bool operator!=(const Iterator7D &other) const
Not equal operator, needed for algorithms like copy.
ConstIterator7D begin() const
Return const iterator to first sub-tensor.
Index mstart
The start index.
Tensor7View & operator+=(Numeric x)
Addition of scalar.
#define CHECK(x)
Implementation of Tensors of Rank 6.
Range mrr
The row range of mdata that is actually used.
virtual ~Tensor7()
Destructor for Tensor7.
Numeric debug_tensor7view_get_elem(Tensor7View &tv, Index l, Index v, Index s, Index b, Index p, Index r, Index c)
Helper function to access tensor elements.
bool operator!=(const ConstIterator7D &other) const
Not equal operator, needed for algorithms like copy.
Index nlibraries() const
Returns the number of libraries.
A constant view of a Tensor4.
ConstIterator7D & operator++()
Prefix increment operator.
Numeric * mdata
Pointer to the plain C array that holds the data.
Tensor6View msv
Current position.
void resize(Index l, Index v, Index s, Index b, Index p, Index r, Index c)
Resize function.
Range mpr
The page range of mdata that is actually used.
Tensor7View()
Default constructor.
ConstIterator7D begin() const
Return iterator to sub-tensor.
Iterator7D & operator++()
Prefix increment operator.
Tensor7View & operator=(const ConstTensor7View &v)
Assignment operator.
Index nvitrines() const
Returns the number of vitrines.
Range msr
The shelf range of mdata that is actually used.
Numeric max(const ConstTensor7View &x)
Max function, tensor version.
Index npages() const
Returns the number of pages.
A constant view of a Tensor6.
NUMERIC Numeric
The type to use for all floating point numbers.
Iterator7D(const Tensor6View &x, Index stride)
Explicit constructor.
ConstIterator7D end() const
Return const iterator behind last sub-tensor.
ConstTensor7View operator()(const Range &l, const Range &v, const Range &s, const Range &b, const Range &p, const Range &r, const Range &c) const
Range mpr
The page range of mdata that is actually used.
Tensor6View & operator*()
Dereferencing.
Range mvr
The vitrine range of mdata that is actually used.
A constant view of a Matrix.
ConstTensor7View operator()(const Range &l, const Range &v, const Range &s, const Range &b, const Range &p, const Range &r, const Range &c) const
Tensor7View & operator/=(Numeric x)
Division by scalar.
Range mbr
The book range of mdata that is actually used.
virtual ~Tensor7View()
Destructor.
Iterator7D(const Iterator7D &o)
Copy constructor.
Index nbooks() const
Returns the number of books.
Iterator7D()
Default constructor.
Range mcr
The column range of mdata that is actually used.
Tensor7View & operator*=(Numeric x)
Multiplication by scalar.
void copy(ConstIterator7D origin, const ConstIterator7D &end, Iterator7D target)
Copy data between begin and end to target.
A constant view of a Tensor3.
Tensor7 & operator=(const Tensor7 &x)
Assignment operator from another tensor.
const ConstTensor6View * operator->() const
The -> operator is needed, so that we can write i->begin() to get the 1D iterators.
virtual ~ConstTensor7View()
Destructor.
ConstIterator7D(const ConstIterator7D &o)
Copy constructor.
ConstIterator7D(const ConstTensor6View &x, Index stride)
Explicit constructor.
INDEX Index
The type to use for all integer numbers and indices.
Index nrows() const
Returns the number of rows.
ConstTensor7View()
Default constructor.
ConstTensor6View msv
Current position.
Tensor7()
Default constructor.
Tensor6View * operator->()
The -> operator is needed, so that we can write i->begin() to get the 1D iterators.
Range mcr
The column range of mdata that is actually used.
A constant view of a Vector.
ConstIterator7D()
Default constructor.
void transform(Tensor7View y, double(&my_func)(double), ConstTensor7View x)
A generic transform function for tensors, which can be used to implement mathematical functions opera...
A constant view of a Tensor5.
Numeric * mdata
Pointer to the plain C array that holds the data.