Template Function librapid::abs(const GenericVector<Scalar, Dims>&)#
Defined in File genericVector.hpp
Function Documentation#
-
template<typename Scalar, int64_t Dims>
GenericVector<Scalar, Dims> librapid::abs(const GenericVector<Scalar, Dims> &vec)# Calculate the absolute value 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 – The vector to calculate the absolute value of
- Returns
The absolute value of each element of the vector