![]() |
Rosetta
2019.07
|
#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... | |
MathTensor & | operator= (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... | |
T & | operator() (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_ |
T * | data_ |
|
inline |
construct Tensor from optional number of layers, optional number of rows, optional number of columns, and optional single element
|
inline |
construct Tensor from optional number of layers, optional number of rows, optional number of columns, and optional single element
|
inline |
|
inline |
|
inline |
return number of columns
Referenced by numeric::interpolation::spline::TricubicSpline::train().
|
inline |
return number of layers
Referenced by numeric::interpolation::spline::TricubicSpline::train().
|
inline |
return number of rows
Referenced by numeric::interpolation::spline::TricubicSpline::train().
|
inline |
|
inline |
|
inline |
|
inline |
copies elements of argument matrix into this object at position ( layer )
|
private |
|
private |
|
private |
|
private |
|
private |