Template Function librapid::abs(VAL&&)#
Defined in File operations.hpp
Function Documentation#
-
template<class VAL>
auto librapid::abs(VAL &&val) -> detail::Function<typetraits::DescriptorType_t<VAL>, detail::Abs, VAL># Compute the absolute value of each element in the array.
\(R = \{ R_0, R_1, R_2, ... \} \) \text{ where } \(R_i = |A_i|\)
- Template Parameters
VAL – Type of the input
- Parameters
val – The input array or function
- Returns
Absolute value function object