Template Function librapid::pow(Scalar, const GenericVector<Scalar, Dims>&)#
Defined in File genericVector.hpp
Function Documentation#
-
template<typename Scalar, int64_t Dims>
GenericVector<Scalar, Dims> librapid::pow(Scalar vec, const GenericVector<Scalar, Dims> &exp)# Raise a scalar to the power of each element of a vector and return the result
- Template Parameters
Scalar – The scalar type of the vector
Dims – The dimensionality of the vector
StorageType – The storage type of the vector
- Parameters
vec – Base vector
exp – Scalar exponent
- Returns
The result of raising the scalar to the power of each element of the vector