Class for fixed-size rank-four tensor storing N1 x N2 x N3 x N4 objects of type T. More...
#include <fixed_size_vector.h>
Public Member Functions | |
| FixedSizeRankFourTensor () | |
| Default constructor. | |
| FixedSizeRankFourTensor (const T &value) | |
| Constructor with initialisation. | |
| void | fill (const T &value) |
| Fill all entries with specified value. | |
| T & | operator() (const unsigned &i, const unsigned &j, const unsigned &k, const unsigned &l) |
| Read/write access to (i,j,k,l)-th entry. | |
| const T & | operator() (const unsigned &i, const unsigned &j, const unsigned &k, const unsigned &l) const |
| Read access to (i,j,k,l)-th entry. | |
Private Attributes | |
| T | Data [N1 *N2 *N3 *N4] |
| Tensor data. | |
Class for fixed-size rank-four tensor storing N1 x N2 x N3 x N4 objects of type T.
Storage layout:
(0,0,0,0), (0,0,0,1), ... , (0,0,0,N4-1), (0,0,1,0), ... ... (N1-1,N2-1,N3-1,N4-1)
Definition at line 366 of file fixed_size_vector.h.
|
inline |
Default constructor.
Definition at line 370 of file fixed_size_vector.h.
|
inline |
Constructor with initialisation.
Definition at line 373 of file fixed_size_vector.h.
References oomph::FixedSizeRankFourTensor< T, N1, N2, N3, N4 >::fill().
Fill all entries with specified value.
Definition at line 379 of file fixed_size_vector.h.
References i.
Referenced by oomph::FixedSizeRankFourTensor< T, N1, N2, N3, N4 >::FixedSizeRankFourTensor().
|
inline |
Read/write access to (i,j,k,l)-th entry.
Definition at line 388 of file fixed_size_vector.h.
References i.
|
inline |
Read access to (i,j,k,l)-th entry.
Definition at line 413 of file fixed_size_vector.h.
References i.
Tensor data.
Definition at line 439 of file fixed_size_vector.h.