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.


Tensor with dimension D and rank N+M

  • [in] A: First tensor

  • [in] B: Second tensor

Template Parameters
  • ElemType: Typename of elements

  • D: Vector dimension

  • N: Rank of first tensor

  • M: Rank of second tensor