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