1998 :
ConstTensor6View(data, pv, ps, pb, pp, pr, pc, nv, ns, nb, np, nr, nc) {
2332
INDEX Index
The type to use for all integer numbers and indices.
The outermost iterator class for rank 6 tensors.
Iterator6D end()
Return iterator behind last sub-tensor.
Range mcr
The column range of mdata that is actually used.
Index mstart
The start index.
Numeric debug_tensor6view_get_elem(Tensor6View &tv, Index v, Index s, Index b, Index p, Index r, Index c)
Helper function to access tensor elements.
Index nvitrines() const
Returns the number of vitrines.
A constant view of a Tensor6.
Tensor6View & operator/=(Numeric x)
Division by scalar.
Const version of Iterator6D.
virtual ~Tensor6()
Destructor for Tensor6.
ConstIterator6D end() const
Return const iterator behind last sub-tensor.
Range msr
The shelf range of mdata that is actually used.
void swap(Tensor6 &t1, Tensor6 &t2)
Swaps two objects.
ConstTensor6View()=default
Tensor6 & operator=(const Tensor6 &x)
Assignment operator from another tensor.
friend void swap(Tensor6 &t1, Tensor6 &t2)
Swaps two objects.
ConstIterator5D end() const
Return const iterator behind last shelf.
G0 G2 FVC Y DV Numeric Numeric Numeric Zeeman LowerQuantumNumbers void * data
Iterator5D end()
Return iterator behind last shelf.
A constant view of a Tensor4.
Range mbr
The book range of mdata that is actually used.
Tensor6View & operator*=(Numeric x)
Multiplication by scalar.
Iterator6D begin()
Return iterator to first sub-tensor.
Tensor6View & operator+=(Numeric x)
Addition of scalar.
#define CHECK(x)
Implementation of Tensors of Rank 6.
Numeric max(const ConstTensor6View &x)
Max function, tensor version.
std::ostream & operator<<(std::ostream &os, const ConstTensor6View &v)
Output operator.
The declarations of all the exception classes.
Range mrr
The row range of mdata that is actually used.
Index nrows() const
Returns the number of rows.
Tensor6View & operator-=(Numeric x)
Subtraction of scalar.
A constant view of a Tensor5.
Tensor6View & operator=(const ConstTensor6View &v)
Assignment operator.
NUMERIC Numeric
The type to use for all floating point numbers.
ConstIterator5D begin() const
Return const iterator to first shelf.
Index mextent
The number of elements.
ConstIterator6D begin() const
Return const iterator to first sub-tensor.
Index nshelves() const
Returns the number of shelves.
Index ncols() const
Returns the number of columns.
Numeric * mdata
Pointer to the plain C array that holds the data.
Range mvr
The vitrine range of mdata that is actually used.
void copy(ConstIterator6D origin, const ConstIterator6D &end, Iterator6D target)
Copy data between begin and end to target.
bool empty() const
Check if variable is empty.
const Numeric * get_c_array() const
Conversion to plain C-array.
A constant view of a Tensor3.
A constant view of a Vector.
Index npages() const
Returns the number of pages.
Range mpr
The page range of mdata that is actually used.
A constant view of a Matrix.
Tensor6View operator()(const Range &v, const Range &s, const Range &b, const Range &p, const Range &r, const Range &c)
void resize(Index v, Index s, Index b, Index p, Index r, Index c)
Resize function.
Numeric min(const ConstTensor6View &x)
Min function, tensor version.
void transform(Tensor6View y, double(&my_func)(double), ConstTensor6View x)
A generic transform function for tensors, which can be used to implement mathematical functions opera...
ConstTensor6View operator()(const Range &v, const Range &s, const Range &b, const Range &p, const Range &r, const Range &c) const
Iterator5D begin()
Return iterator to first shelf.
Index nbooks() const
Returns the number of books.