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.


A[in] Tensor to symmetrize

Template Parameters
  • ElemType – Typename of tensor elements

  • D – Vector dimension of the tensor

  • N – Rank of the tensor


Symmetric part of the tensor