Template Function gamer::operator*(const tensor<ElemType, D, N>&, const tensor<ElemType, D, M>&)

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)

Tensor product.

  • 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


Tensor with dimension D and rank N+M