Template Function librapid::operator-(const VecImpl<Scalar, Dims, StorageType>&, const S&)#

Function Documentation#

template<typename Scalar, int64_t Dims, typename StorageType, typename S>
VecImpl<Scalar, Dims, StorageType> librapid::operator-(const VecImpl<Scalar, Dims, StorageType> &lhs, const S &rhs)#

Subtract a scalar from a Vector object and return the result

Template Parameters
  • Scalar – The type of the scalar

  • Dims – The number of dimensions

  • StorageType – The type of the storage

  • S – The type of the scalar

Parameters
  • lhs – The left hand side of the subtraction

  • rhs – The right hand side of the subtraction

Returns

The result of the subtraction