Template Function brille::approx::tols

Function Documentation

template<class T, class R>
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.