29 constexpr T
abs(T value);
40 constexpr
bool epsilon_equal(T left, T right, T eps = std::numeric_limits<T>::epsilon());
50 constexpr
bool epsilon_zero(T value, T eps = std::numeric_limits<T>::epsilon());
61 constexpr
bool epsilon_less_equal(T left, T right, T eps = std::numeric_limits<T>::epsilon());
80 template<std::
integral T>
81 constexpr
bool is_odd(T val);
89 template<std::
integral T>
101 constexpr
int gcd(
int nFirst,
int nSecond);
110 constexpr
int lcm(
int nFirst,
int nSecond);
125 inline double pow(T number,
int nPower);
133 template<std::
integral I>
134 inline I
maxpot(I nValue);
146 template<
class T,
class compare_t = std::less_equal<>>
147 constexpr
bool between(T left, T value, T right, compare_t compare);
159 template<
class T,
class compare_t = std::less_equal<>>
160 constexpr
bool between(T left, T value, T right);
constexpr int lcm(int nFirst, int nSecond)
Least common multiple.
constexpr bool between(T left, T value, T right, compare_t compare)
Checks if value is between left and right.
constexpr bool epsilon_greater_equal(T left, T right, T eps=std::numeric_limits< T >::epsilon())
Constexpr comparison function for a user defined epsilon values.
I maxpot(I nValue)
Max power of two in integer.
constexpr bool is_odd(T val)
Check if value is odd.
constexpr bool epsilon_zero(T value, T eps=std::numeric_limits< T >::epsilon())
Constexpr comparison with zero for a user defined epsilon values.
constexpr T abs(T value)
Constexpr absolute value.
constexpr bool epsilon_less_equal(T left, T right, T eps=std::numeric_limits< T >::epsilon())
Constexpr comparison function for a user defined epsilon values.
constexpr bool is_even(T val)
Check if value is even.
constexpr bool epsilon_equal(T left, T right, T eps=std::numeric_limits< T >::epsilon())
Constexpr comparison function for a user defined epsilon values.
double pow(T number, int nPower)
Power function for integer power.
constexpr int gcd(int nFirst, int nSecond)
Greatest common divisor.