Template Function librapid::operator+(const S&, const SIMDVector<Scalar, Dims>&)#

Function Documentation#

template<typename S, typename Scalar, int64_t Dims>
SIMDVector<Scalar, Dims> librapid::operator+(const S &lhs, const SIMDVector<Scalar, Dims> &rhs)#

Add a scalar to a Vector object and return the result

Template Parameters
  • S – The type of the scalar

  • Scalar – The scalar type of the Vector

  • Dims – The number of dimensions

Parameters
  • lhs – The left hand side of the addition

  • rhs – The right hand side of the addition

Returns

The result of the addition