23 template <
typename T_Type>
44 template <
typename T_Type>
45 requires Number<T_Type>
46 [[nodiscard]]
inline auto
47 is_close_abs(T_Type lhs, T_Type rhs, T_Type tolerance = default_tolerance_abs<T_Type>) noexcept -> bool;
64 template <
typename T_Type>
65 requires Number<T_Type>
66 [[nodiscard]]
inline auto is_close_abs(T_Type lhs, T_Type rhs, T_Type tolerance) noexcept ->
bool
68 return std::abs(lhs - rhs) <= tolerance;
Contains some basic definitions and concepts that are frequently needed.
constexpr T_Type default_tolerance_abs
The default absolute tolerance.
Definition: is_close.h:24
requires Number< T_Type > auto is_close_abs(T_Type lhs, T_Type rhs, T_Type tolerance=default_tolerance_abs< T_Type >) noexcept -> bool
Return ´true´ if the difference between lhs and rhs is inside an absolute tolerance and false otherwi...
Definition: is_close.h:66
auto abs(T_RegisterType src) noexcept -> T_RegisterType
Return a new register with the absolute values of the input register.
Definition: sign_manipulation.h:108