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