|
svMultiPhysics
|
The Tensor4 template class implements a simple interface to 4th order tensors. More...
#include <Tensor4.h>
Public Member Functions | |
| Tensor4 (const int num_i, const int num_j, const int num_k, const int num_l) | |
| Tensor4 (const Tensor4 &rhs) | |
| int | num_i () |
| int | num_j () |
| int | num_k () |
| int | num_l () |
| Tensor4 & | operator= (const Tensor4 &rhs) |
| Tensor4 & | operator= (const double value) |
| void | write (const std::string &label, bool memory=true, T offset={}) const |
| void | allocate (const int num_i, const int num_j, const int num_k, const int num_l) |
| void | check_index (const int i, const int j, const int k, const int l) const |
| void | clear () |
| void | resize (const int num_i, const int num_j, const int num_k, const int num_l) |
| const T & | operator() (const int i, const int j, const int k, const int l) const |
| T & | operator() (const int i, const int j, const int k, const int l) |
| Tensor4< T > | operator* (const T value) const |
| Tensor4< T > | operator+= (const Tensor4< T > &rhs) const |
| Tensor4< T > | operator-= (const Tensor4< T > &rhs) const |
| Tensor4< T > | operator+ (const Tensor4< T > &rhs) const |
| Tensor4< T > | operator- (const Tensor4< T > &rhs) const |
Public Attributes | |
| std::string | name_ = "" |
| int | ni_ = 0 |
| int | nj_ = 0 |
| int | nk_ = 0 |
| int | nl_ = 0 |
| int | p1_ = 0 |
| int | p2_ = 0 |
| int | size_ = 0 |
| T * | data_ = nullptr |
The Tensor4 template class implements a simple interface to 4th order tensors.