Skip to content

function abs(const T1 &) basic_math

template <numeric T1>
KFR_INTRINSIC T1 abs(const T1& x)

Returns the absolute value of x.

Remark

Supports integer and floating-point numbers, scalars, and vec<>.

Defined at simd/abs.hpp:40