ug4
|
a mathematical Tensor of rank TRank and N entries. More...
#include <math_tensor.h>
Public Types | |
typedef size_t | size_type |
typedef MathTensor< TRank-1, N, T > | value_type |
Public Member Functions | |
MathTensor () | |
MathTensor (const MathTensor &v) | |
MathTensor & | operator= (const MathTensor &v) |
MathTensor & | operator= (T val) |
sets all values of the tensor to a value More... | |
value_type & | operator[] (size_t i) |
const value_type & | operator[] (size_t i) const |
size_t | rank () const |
void | set (T val) |
size_t | size () const |
Static Public Attributes | |
static const size_t | Dimension = N |
static const size_t | Rank = TRank |
Protected Member Functions | |
void | assign (const MathTensor< TRank, N, T > &v) |
Protected Attributes | |
value_type | m_data [N] |
a mathematical Tensor of rank TRank and N entries.
typedef size_t ug::MathTensor< TRank, N, T >::size_type |
typedef MathTensor<TRank-1, N, T> ug::MathTensor< TRank, N, T >::value_type |
|
inline |
|
inline |
References ug::MathTensor< TRank, N, T >::assign().
|
inlineprotected |
|
inline |
References ug::MathTensor< TRank, N, T >::assign().
|
inline |
sets all values of the tensor to a value
References ug::MathTensor< TRank, N, T >::set().
|
inline |
|
inline |
|
inline |
|
inline |
References ug::MathTensor< TRank, N, T >::m_data, and ug::MathTensor< TRank, N, T >::set().
Referenced by ug::MathTensor< 1, N, T >::MathTensor(), ug::MathTensor< TRank, N, T >::operator=(), ug::MathTensor< 1, N, T >::operator=(), ug::ConstUserTensor< TRank, dim >::set(), and ug::MathTensor< TRank, N, T >::set().
|
inline |
|
static |
|
protected |
|
static |