namespace ewalena  0.2.15
ewalena is not an acronym
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Classes | Functions
ewalena::TensorTools Namespace Reference

Classes

class  VoightMap

Functions

template<int dim, typename ValueType >
Matrix< ValueType > voight_fold (const Tensor< dim, 2, ValueType > &T)
template<int dim, typename ValueType >
Matrix< ValueType > voight_fold (const Tensor< dim, 3, ValueType > &T, const unsigned int symmetry_direction=0)
template<int dim, typename ValueType >
Matrix< ValueType > voight_fold (const Tensor< dim, 4, ValueType > &T)

Function Documentation

template<int dim, typename ValueType >
Matrix<ValueType> ewalena::TensorTools::voight_fold ( const Tensor< dim, 2, ValueType > &  T)

Specialisation of voight folding for rank=2. If the tensor T is not symmetric in the indices $i,j$, an exception is thrown.

template<int dim, typename ValueType >
Matrix<ValueType> ewalena::TensorTools::voight_fold ( const Tensor< dim, 3, ValueType > &  T,
const unsigned int  symmetry_direction = 0 
)

Specialisation of voight folding for rank=4. The flag symmetry_direction denotes in which direction the one remaining index lies and the other indices are folded: $T_{ijk}\equiv\,T_{i(jk)}\rightarrow\,T_{iJ}$ (symmetry_direction=0), this is the default); or $T_{ijk}\equiv\,T_{(ij)k}\rightarrow\,T_{Ik}$ (symmetry_direction=1). If the tensor T is not symmetric in the indices $j,k$ or $i,j$ respectively, an exception is thrown.

template<int dim, typename ValueType >
Matrix<ValueType> ewalena::TensorTools::voight_fold ( const Tensor< dim, 4, ValueType > &  T)

Specialisation of voight folding for rank=4. If the tensor T is not symmetric in the indices $i,j$ and $k,l$, an exception is thrown.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines