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

Function Documentation

template<typename ScalarType, typename ElemType, std::size_t D, std::size_t N>
tensor<ElemType, D, N> gamer::operator*(ScalarType x, const tensor<ElemType, D, N> &A)

Scalar tensor product.


Scalar tensor product

  • [in] A: Tensor to multiply

  • [in] x: Scalar to multiply by

Template Parameters
  • ScalarType: Typename of the scalar

  • ElemType: Typename of tensor elements

  • D: Vector dimension

  • N: Rank