Template Function gamer::Sym

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.


Symmetric part of the tensor

  • [in] A: Tensor to symmetrize

Template Parameters
  • ElemType: Typename of tensor elements

  • D: Vector dimension of the tensor

  • N: Rank of the tensor