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

Function Documentation#

template<typename Scalar, int64_t Dims, typename S>
GenericVector<Scalar, Dims> librapid::operator+(const S &lhs, const GenericVector<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

  • StorageType – The type of the storage

Parameters
  • lhs – The left hand side of the addition

  • rhs – The right hand side of the addition

Returns

The result of the addition