Rosetta  2019.07
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Attributes | List of all members
numeric::MathTensor< T > Class Template Reference

#include <MathTensor.hh>

Public Member Functions

 MathTensor (Size const layers=0, Size const rows=0, Size const cols=0, T const &value=T())
 construct Tensor from optional number of layers, optional number of rows, optional number of columns, and optional single element More...
 
 MathTensor (MathTensor const &src)
 construct Tensor from optional number of layers, optional number of rows, optional number of columns, and optional single element More...
 
MathTensoroperator= (MathTensor const &rhs)
 
 ~MathTensor ()
 
bool is_valid_position (Size layer, Size row, Size column) const
 
 MathTensor (Size const layers, Size const rows, Size const cols, T const *data)
 
Size nlayers () const
 return number of layers More...
 
Size nrows () const
 return number of rows More...
 
Size ncols () const
 return number of columns More...
 
void replace_layer (Size const layer, MathMatrix< T > const &matrix)
 copies elements of argument matrix into this object at position ( layer ) More...
 
Toperator() (Size layer, Size row, Size col)
 
T const & operator() (Size layer, Size row, Size col) const
 

Private Attributes

Size nlayers_
 
Size nrows_
 
Size ncols_
 
Size size_
 
Tdata_
 

Constructor & Destructor Documentation

template<typename T>
numeric::MathTensor< T >::MathTensor ( Size const  layers = 0,
Size const  rows = 0,
Size const  cols = 0,
T const &  value = T() 
)
inline

construct Tensor from optional number of layers, optional number of rows, optional number of columns, and optional single element

template<typename T>
numeric::MathTensor< T >::MathTensor ( MathTensor< T > const &  src)
inline

construct Tensor from optional number of layers, optional number of rows, optional number of columns, and optional single element

template<typename T>
numeric::MathTensor< T >::~MathTensor ( )
inline
template<typename T>
numeric::MathTensor< T >::MathTensor ( Size const  layers,
Size const  rows,
Size const  cols,
T const *  data 
)
inline

Member Function Documentation

template<typename T>
bool numeric::MathTensor< T >::is_valid_position ( Size  layer,
Size  row,
Size  column 
) const
inline
template<typename T>
Size numeric::MathTensor< T >::ncols ( ) const
inline

return number of columns

Referenced by numeric::interpolation::spline::TricubicSpline::train().

template<typename T>
Size numeric::MathTensor< T >::nlayers ( ) const
inline

return number of layers

Referenced by numeric::interpolation::spline::TricubicSpline::train().

template<typename T>
Size numeric::MathTensor< T >::nrows ( ) const
inline

return number of rows

Referenced by numeric::interpolation::spline::TricubicSpline::train().

template<typename T>
T& numeric::MathTensor< T >::operator() ( Size  layer,
Size  row,
Size  col 
)
inline
template<typename T>
T const& numeric::MathTensor< T >::operator() ( Size  layer,
Size  row,
Size  col 
) const
inline
template<typename T>
MathTensor& numeric::MathTensor< T >::operator= ( MathTensor< T > const &  rhs)
inline
template<typename T>
void numeric::MathTensor< T >::replace_layer ( Size const  layer,
MathMatrix< T > const &  matrix 
)
inline

copies elements of argument matrix into this object at position ( layer )

Member Data Documentation

template<typename T>
T* numeric::MathTensor< T >::data_
private
template<typename T>
Size numeric::MathTensor< T >::ncols_
private
template<typename T>
Size numeric::MathTensor< T >::nlayers_
private
template<typename T>
Size numeric::MathTensor< T >::nrows_
private
template<typename T>
Size numeric::MathTensor< T >::size_
private

The documentation for this class was generated from the following file: