1585 :
ConstTensor5View(data, ps, pb, pp, pr, pc, ns, nb, np, nr, nc) {
1892 Range mcr
The column range of mdata that is actually used.
Index npages() const
Returns the number of pages.
INDEX Index
The type to use for all integer numbers and indices.
Tensor5View & operator+=(Numeric x)
Addition of scalar.
Index nrows() const
Returns the number of rows.
bool empty() const
Check if variable is empty.
void resize(Index s, Index b, Index p, Index r, Index c)
Resize function.
std::ostream & operator<<(std::ostream &os, const ConstTensor5View &v)
Output operator.
Index mstart
The start index.
Tensor5View & operator-=(Numeric x)
Subtraction of scalar.
ConstIterator4D begin() const
Return const iterator to first book.
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...
Iterator4D begin()
Return iterator to first book.
virtual ~Tensor5()
Destructor for Tensor5.
void swap(Tensor5 &t1, Tensor5 &t2)
Swaps two objects.
Index nbooks() const
Returns the number of books.
ConstIterator5D end() const
Return const iterator behind last shelf.
void copy(ConstIterator5D origin, const ConstIterator5D &end, Iterator5D target)
Copy data between begin and end to target.
G0 G2 FVC Y DV Numeric Numeric Numeric Zeeman LowerQuantumNumbers void * data
Iterator5D end()
Return iterator behind last shelf.
ConstTensor5View()=default
Numeric max(const ConstTensor5View &x)
Max function, tensor version.
A constant view of a Tensor4.
friend void swap(Tensor5 &t1, Tensor5 &t2)
Swaps two objects.
Tensor5View & operator/=(Numeric x)
Division by scalar.
Index nshelves() const
Returns the number of shelves.
Range mbr
The book range of mdata that is actually used.
Range mpr
The page range of mdata that is actually used.
Iterator4D end()
Return iterator behind last book.
Numeric * mdata
Pointer to the plain C array that holds the data.
The declarations of all the exception classes.
ConstTensor5View operator()(const Range &s, const Range &b, const Range &p, const Range &r, const Range &c) const
Const index operator for subrange.
A constant view of a Tensor5.
NUMERIC Numeric
The type to use for all floating point numbers.
ConstIterator5D begin() const
Return const iterator to first shelf.
Range msr
The shelf range of mdata that is actually used.
const Numeric * get_c_array() const
Conversion to plain C-array.
Index mextent
The number of elements.
Const version of Iterator5D.
Tensor5View & operator=(const ConstTensor5View &v)
Assignment operator.
Implementation of Tensors of Rank 5.
ConstIterator4D end() const
Return const iterator behind last book.
Numeric debug_tensor5view_get_elem(Tensor5View &tv, Index s, Index b, Index p, Index r, Index c)
Helper function to access tensor elements.
Numeric min(const ConstTensor5View &x)
Min function, tensor version.
A constant view of a Tensor3.
Range mrr
The row range of mdata that is actually used.
A constant view of a Vector.
A constant view of a Matrix.
Index ncols() const
Returns the number of columns.
Tensor5View operator()(const Range &s, const Range &b, const Range &p, const Range &r, const Range &c)
Index operator for subrange.
Tensor5View & operator*=(Numeric x)
Multiplication by scalar.
Iterator5D begin()
Return iterator to first shelf.
Tensor5 & operator=(const Tensor5 &x)
Assignment operator from another tensor.