|
template<int , int , typename > |
class | SymmetricTensor |
|
template<int , int , bool , int , typename > |
class | Accessor |
|
class | ::SymmetricTensor< rank, dim, Number > |
|
class | Accessor< rank, dim, constness, P+1, Number > |
|
template<int rank, int dim, bool constness, int P, typename Number>
class internal::SymmetricTensorAccessors::Accessor< rank, dim, constness, P, Number >
Definition at line 328 of file symmetric_tensor.h.
template<int rank, int dim, bool constness, int P, typename Number >
Constructor. Take a reference to the tensor object which we will access.
The second argument denotes the values of previous indices into the tensor. For example, for a rank-4 tensor, if P=2, then we will already have had two successive element selections (e.g. through tensor[1][2]
), and the two index values have to be stored somewhere. This class therefore only makes use of the first rank-P elements of this array, but passes it on to the next level with P-1 which fills the next entry, and so on.
The constructor is made private in order to prevent you having such objects around. The only way to create such objects is via the Table
class, which only generates them as temporary objects. This guarantees that the accessor objects go out of scope earlier than the mother object, avoid problems with data consistency.