Template Function gamer::Sym¶
Defined in File tensor.h
Function Documentation¶
-
template<typename ElemType, std::size_t D, std::size_t N>
tensor<ElemType, D, N> gamer::Sym(const tensor<ElemType, D, N> &A)¶ Symmetric part of a tensor.
- Parameters
A – [in] Tensor to symmetrize
- Template Parameters
ElemType – Typename of tensor elements
D – Vector dimension of the tensor
N – Rank of the tensor
- Returns
Symmetric part of the tensor