Template Function gamer::operator^

Function Documentation

template<typename ElemType, std::size_t D, std::size_t N, std::size_t M>
tensor<ElemType, D, N + M> gamer::operator^(const tensor<ElemType, D, N> &A, const tensor<ElemType, D, M> &B)

Wedge product of two tensors.

Parameters
  • A[in] First tensor

  • B[in] Second tensor

Template Parameters
  • ElemType – Typename of elements

  • D – Vector dimension

  • N – Rank of first tensor

  • M – Rank of second tensor

Returns

Tensor with dimension D and rank N+M