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

Function Documentation

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

Scalar division of tensor.

Return

Divided tensor

Parameters
  • [in] A: Tensor to divide

  • [in] x: Scalar denominator

Template Parameters
  • ScalarType: Typename of the scalar

  • ElemType: Typename of tensor elements

  • D: Vector dimension

  • N: Rank