3#ifndef pRC_CORE_VALUE_FUNCTIONS_ABS_H
4#define pRC_CORE_VALUE_FUNCTIONS_ABS_H
19 template<
class T, If<IsValue<T>> = 0,
20 If<IsSatisfied<(
typename T::Signed() == true)>> = 0>
21 static inline constexpr auto abs(
T const &a)
23 return (a >=
zero()) ? a : -a;
36 template<
class T, If<IsValue<T>> = 0,
37 If<IsSatisfied<(
typename T::Signed() == false)>> = 0>
38 static inline constexpr auto abs(
T const &a)
Definition cholesky.hpp:18
static constexpr auto zero()
Definition zero.hpp:12
static constexpr auto abs(Complex< T > const &a)
Definition abs.hpp:12
static constexpr Conditional< IsSatisfied< C >, RemoveConstReference< X >, X > copy(X &&a)
Definition copy.hpp:13