Go to the documentation of this file.
174 const Range& c)
const;
192 const Range& c)
const;
200 const Range& c)
const;
208 const Range& c)
const;
216 const Range& c)
const;
224 const Range& c)
const;
232 const Range& c)
const;
290 const Range& c)
const;
298 const Range& c)
const;
306 const Range& c)
const;
314 const Range& c)
const;
322 const Range& c)
const;
330 const Range& c)
const;
338 const Range& c)
const;
346 const Range& c)
const;
354 const Range& c)
const;
362 const Range& c)
const;
370 const Range& c)
const;
378 const Range& c)
const;
386 const Range& c)
const;
394 const Range& c)
const;
402 const Range& c)
const;
532 const Range& c)
const;
540 const Range& c)
const;
548 const Range& c)
const;
556 const Range& c)
const;
564 const Range& c)
const;
572 const Range& c)
const;
580 const Range& c)
const;
588 const Range& c)
const;
596 const Range& c)
const;
604 const Range& c)
const;
612 const Range& c)
const;
620 const Range& c)
const;
628 const Range& c)
const;
636 const Range& c)
const;
644 const Range& c)
const;
652 const Range& c)
const;
660 const Range& c)
const;
668 const Range& c)
const;
676 const Range& c)
const;
684 const Range& c)
const;
694 const Range& c)
const;
702 const Range& c)
const;
710 const Range& c)
const;
718 const Range& c)
const;
726 const Range& c)
const;
734 const Range& c)
const;
742 const Range& c)
const;
750 const Range& c)
const;
758 const Range& c)
const;
766 const Range& c)
const;
774 const Range& c)
const;
782 const Range& c)
const;
790 const Range& c)
const;
798 const Range& c)
const;
806 const Range& c)
const;
976 const Range& c)
const;
984 const Range& c)
const;
992 const Range& c)
const;
1000 const Range& c)
const;
1008 const Range& c)
const;
1016 const Range& c)
const;
1146 const Range& c)
const;
1207 return get(l, v, s, b, p, r, c);
1291 using ConstTensor7View::operator();
2304 return get(l, v, s, b, p, r, c);
2449 #endif // matpackVII_h
Const version of Iterator7D.
Numeric & operator()(Index l, Index v, Index s, Index b, Index p, Index r, Index c)
Numeric get(Index l, Index v, Index s, Index b, Index p, Index r, Index c) const
Get element implementation without assertions.
Index nshelves() const
Returns the number of shelves.
constexpr ConstTensor7View(ConstTensor7View &&)=default
Numeric min(const ConstTensor7View &x)
Min function, tensor version.
Iterator7D begin()
Return iterator to first sub-tensor.
Range mvr
The vitrine range of mdata that is actually used.
Range msr
The shelf range of mdata that is actually used.
Range mbr
The book range of mdata that is actually used.
ConstTensor7View & operator=(const ConstTensor7View &)=default
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.
ConstIterator7D()=default
Default constructor.
constexpr Tensor7View(const Tensor7View &)=default
const ConstTensor6View & operator*() const
Dereferencing.
Implementation of Tensors of Rank 7.
Vector y(Workspace &ws) noexcept
bool operator!=(const Iterator7D &other) const
Not equal operator, needed for algorithms like copy.
G0 G2 FVC Y DV Numeric Numeric Numeric Zeeman LowerQuantumNumbers void * data
Tensor7View operator()(const Range &l, const Range &v, const Range &s, const Range &b, const Range &p, const Range &r, const Range &c)
ConstTensor7View & operator=(ConstTensor7View &&)=default
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.
Iterator7D()=default
Default constructor.
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.
Tensor7(Tensor7 &&v) noexcept
virtual ~Tensor7View()=default
Destructor.
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.
bool empty() const
Check if variable is empty.
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.
Numeric get(Index l, Index v, Index s, Index b, Index p, Index r, Index c) const
Get element implementation without assertions.
const Numeric * get_c_array() const
Conversion to plain C-array.
Iterator7D end()
Return iterator behind last sub-tensor.
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.
constexpr Rational end(Rational Ju, Rational Jl, Polarization type) noexcept
Gives the largest M for a polarization type of this transition.
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.
Index nbooks() const
Returns the number of books.
constexpr ConstTensor7View(const ConstTensor7View &)=default
Range mcr
The column range of mdata that is actually used.
Numeric & get(Index l, Index v, Index s, Index b, Index p, Index r, Index c)
Get element implementation without assertions.
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.
ConstTensor7View()=default
virtual ~ConstTensor7View()=default
Destructor.
const ConstTensor6View * operator->() const
The -> operator is needed, so that we can write i->begin() to get the 1D iterators.
ConstIterator7D(const ConstTensor6View &x, Index stride)
Explicit constructor.
Vector x(Workspace &ws) noexcept
INDEX Index
The type to use for all integer numbers and indices.
Index nrows() const
Returns the number of rows.
ConstTensor6View msv
Current position.
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.
Numeric operator()(Index l, Index v, Index s, Index b, Index p, Index r, Index c) const
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.
std::ostream & operator<<(std::ostream &os, const ConstTensor7View &v)
Output operator.
friend void swap(Tensor7 &t1, Tensor7 &t2)
Swaps two objects.
Numeric * mdata
Pointer to the plain C array that holds the data.