1019 for ( ; ip!=end_page; ++ip )
2395 throw std::runtime_error(
"A Tensor6View can only be converted to a plain C-array if it's pointing to a continuous block of data");
2415 throw std::runtime_error(
"A Tensor6View can only be converted to a plain C-array if it's pointing to a continuous block of data");
2580 for ( ; p!=ep ; ++p,++xp )
2599 for ( ; p!=ep ; ++p,++xp )
2618 for ( ; p!=ep ; ++p,++xp )
2637 for ( ; p!=ep ; ++p,++xp )
2720 ConstTensor6View(data,pv,ps,pb,pp,pr,pc,nv,ns,nb,np,nr,nc)
2733 for ( ; origin!=
end ; ++origin,++target )
2748 for ( ; target!=
end ; ++target )
2775 Range(0,v,s*b*p*r*c),
2789 Range(0,v,s*b*p*r*c),
2965 double (&my_func)(
double),
2979 for ( ; xi!=xe; ++xi, ++yi )
2997 for ( ; xi!=xe ; ++xi )
3002 if ( maxi > themax )
3019 for ( ; xi!=xe ; ++xi )
3024 if ( mini < themin )
3056 return tv(v, s, b, p, r, c);
INDEX Index
The type to use for all integer numbers and indices.
ConstIterator6D begin() const
Return const iterator to sub-tensor.
The outermost iterator class for rank 6 tensors.
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.
friend void swap(Tensor6 &t1, Tensor6 &t2)
Swaps two objects.
ConstIterator5D end() const
Return const iterator behind last shelf.
Tensor6()
Default constructor.
A constant view of a Tensor4.
Range mbr
The book range of mdata that is actually used.
ConstIterator6D end() const
Return const iterator behind last sub-tensor.
Tensor6View & operator*=(Numeric x)
Multiplication by scalar.
ConstTensor6View()
Default constructor.
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.
ConstIterator5D end() const
Return const iterator behind last shelf.
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.
Tensor6View()
Default constructor.
Index mextent
The number of elements.
ConstIterator6D begin() const
Return const iterator to first sub-tensor.
ConstIterator5D begin() const
Return const iterator to first shelf.
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.
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.
Tensor6 & operator=(Tensor6 x)
Assignment operator from another tensor.
Range mpr
The page range of mdata that is actually used.
A constant view of a Matrix.
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
Index nbooks() const
Returns the number of books.