Template Function gamer::Alt

Function Documentation

template<typename ElemType, std::size_t D, std::size_t N>
tensor<ElemType, D, N> gamer::Alt(const tensor<ElemType, D, N> &A)

Alternize a tensor.

Return

Alternating tensor

Parameters
  • [in] A: Tensor to alternatize

Template Parameters
  • ElemType: Typename of tensor elements

  • D: Vector dimension of the tensor

  • N: Rank of the tensor