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.

Parameters

A[in] Tensor to alternatize

Template Parameters
  • ElemType – Typename of tensor elements

  • D – Vector dimension of the tensor

  • N – Rank of the tensor

Returns

Alternating tensor