Numerical tensor. More...
#include <NumTns.hpp>
Public Member Functions | |
NumTns (Int m=0, Int n=0, Int p=0) | |
NumTns (Int m, Int n, Int p, bool owndata, F *data) | |
NumTns (const NumTns &C) | |
NumTns & | operator= (const NumTns &C) |
void | Resize (Int m, Int n, Int p) |
const F & | operator() (Int i, Int j, Int k) const |
F & | operator() (Int i, Int j, Int k) |
F * | Data () const |
F * | MatData (Int j) const |
F * | VecData (Int j, Int k) const |
Int | m () const |
Int | n () const |
Int | p () const |
Int | ByteSize () const |
Public Attributes | |
Int | m_ |
The size of the first dimension. | |
Int | n_ |
The size of second dimension. | |
Int | p_ |
The size of third dimension. | |
bool | owndata_ |
Whether it owns the data. | |
F * | data_ |
The pointer for the actual data. | |
Numerical tensor.
NumTns is a portable encapsulation of a pointer to represent a 3D tensor, which can either own (owndata == true) or view (owndata == false) a piece of data.