Template Function brille::approx::tols¶
Defined in File approx.hpp
Function Documentation¶
-
template<class
T, classR>
std::tuple<bool, bool, T, R, T, R>brille::approx::tols(const int tol = 1)¶ Returns tuple of tolerance information for approximate comparisons for two datatypes, T and R.
The tuple contains four elements, the first is true if either T or R is an integer or if R can be converted to T. The second is true if T is a floating point datatype. The third is proportional to epsilon of the datatype T. The fourth is proportional to epsilon of the datatype R.