1983 for ( ; ip!=end_page; ++ip )
3088 l, v, s, b, p, r, c);
4873 throw std::runtime_error(
"A Tensor7View can only be converted to a plain C-array if it's pointing to a continuous block of data");
4894 throw std::runtime_error(
"A Tensor7View can only be converted to a plain C-array if it's pointing to a continuous block of data");
5065 for ( ; p!=ep ; ++p,++xp )
5085 for ( ; p!=ep ; ++p,++xp )
5105 for ( ; p!=ep ; ++p,++xp )
5125 for ( ; p!=ep ; ++p,++xp )
5214 ConstTensor7View(data,pl,pv,ps,pb,pp,pr,pc,nl,nv,ns,nb,np,nr,nc)
5227 for ( ; origin!=
end ; ++origin,++target )
5242 for ( ; target!=
end ; ++target )
5270 Range(0,l,v*s*b*p*r*c),
5271 Range(0,v,s*b*p*r*c),
5286 Range(0,l,v*s*b*p*r*c),
5287 Range(0,v,s*b*p*r*c),
5473 double (&my_func)(
double),
5488 for ( ; xi!=xe; ++xi, ++yi )
5506 for ( ; xi!=xe ; ++xi )
5511 if ( maxi > themax )
5528 for ( ; xi!=xe ; ++xi )
5533 if ( mini < themin )
5566 return tv(l, v, s, b, p, r, c);
INDEX Index
The type to use for all integer numbers and indices.
ConstIterator7D end() const
Return const iterator behind last sub-tensor.
Tensor7()
Default constructor.
ConstIterator6D begin() const
Return const iterator to sub-tensor.
Tensor7View & operator-=(Numeric x)
Subtraction of scalar.
A constant view of a Tensor7.
Index mstart
The start index.
A constant view of a Tensor6.
Index nrows() const
Returns the number of rows.
ConstIterator6D end() const
Return const iterator behind last sub-tensor.
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.
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()
Default constructor.
ConstIterator7D end() const
Return const iterator behind last sub-tensor.
Numeric min(const ConstTensor7View &x)
Min function, tensor version.
Tensor7View & operator+=(Numeric x)
Addition of scalar.
A constant view of a Tensor4.
ConstIterator7D begin() const
Return iterator to sub-tensor.
Tensor7View & operator=(const ConstTensor7View &v)
Assignment operator.
ConstIterator6D end() const
Return const iterator behind last sub-tensor.
#define CHECK(x)
Implementation of Tensors of Rank 6.
Tensor7View & operator/=(Numeric x)
Division by scalar.
The declarations of all the exception classes.
Range mrr
The row range of mdata that is actually used.
Range mcr
The column range of mdata that is actually used.
ConstIterator7D begin() const
Return const iterator to first sub-tensor.
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 Numeric
The type to use for all floating point numbers.
Index nlibraries() const
Returns the number of libraries.
ConstTensor7View()
Default constructor.
virtual ~Tensor7()
Destructor for Tensor7.
Implementation of Tensors of Rank 7.
Tensor7 & operator=(Tensor7 x)
Assignment operator from another tensor.
const Numeric * get_c_array() const
Conversion to plain C-array.
Index mextent
The number of elements.
friend void swap(Tensor7 &t1, Tensor7 &t2)
Swaps two objects.
ConstIterator6D begin() const
Return const iterator to first sub-tensor.
Range msr
The shelf range of mdata that is actually used.
Numeric * mdata
Pointer to the plain C array that holds the data.
Const version of Iterator7D.
std::ostream & operator<<(std::ostream &os, const ConstTensor7View &v)
Output operator.
A constant view of a Tensor3.
A constant view of a Vector.
Index nshelves() const
Returns the number of shelves.
Numeric max(const ConstTensor7View &x)
Max function, tensor version.
A constant view of a Matrix.
Index npages() const
Returns the number of pages.
Index nvitrines() const
Returns the number of vitrines.
Index ncols() const
Returns the number of columns.
Range mpr
The page range of mdata that is actually used.
void swap(Tensor7 &t1, Tensor7 &t2)
Swaps two objects.
Range mlr
The library range of mdata that is actually used.
void resize(Index l, Index v, Index s, Index b, Index p, Index r, Index c)
Resize function.
Tensor7View & operator*=(Numeric x)
Multiplication by scalar.
Range mbr
The book range of mdata that is actually used.
Index nbooks() const
Returns the number of books.
Range mvr
The vitrine range of mdata that is actually used.
void copy(ConstIterator7D origin, const ConstIterator7D &end, Iterator7D target)
Copy data between begin and end to target.