Rosetta
|
#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
References numeric::MathTensor< T >::data_, detail::fill(), numeric::MathTensor< T >::size_, and value.
|
inline |
construct Tensor from optional number of layers, optional number of rows, optional number of columns, and optional single element
References erraser_util::copy(), numeric::MathTensor< T >::data_, and numeric::MathTensor< T >::size_.
|
inline |
References numeric::MathTensor< T >::data_.
|
inline |
References data, numeric::MathTensor< T >::data_, create_a3b_hbs::ii, and numeric::MathTensor< T >::size_.
|
inline |
|
inline |
return number of columns
References numeric::MathTensor< T >::ncols_.
Referenced by numeric::interpolation::spline::TricubicSpline::train().
|
inline |
return number of layers
References numeric::MathTensor< T >::nlayers_.
Referenced by numeric::interpolation::spline::TricubicSpline::train().
|
inline |
return number of rows
References numeric::MathTensor< T >::nrows_.
Referenced by numeric::interpolation::spline::TricubicSpline::train().
|
inline |
|
inline |
copies elements of argument matrix into this object at position ( layer )
References numeric::MathTensor< T >::data_, create_a3b_hbs::ii, numeric::MathTensor< T >::is_valid_position(), beta_nonlocal::jj, basic::options::OptionKeys::flxbb::layer::layer, matrix, numeric::MathTensor< T >::ncols_, and numeric::MathTensor< T >::nrows_.
|
private |
|
private |
|
private |
|
private |
|
private |
Referenced by numeric::MathTensor< T >::MathTensor(), and numeric::MathTensor< T >::operator=().