Stokhos
Development
|
A functor for comparing floating-point numbers to some tolerance. More...
#include <Stokhos_ProductBasisUtils.hpp>
Public Member Functions | |
FloatingPointLess (const value_type &tol_=1.0e-12) | |
Constructor. | |
~FloatingPointLess () | |
Destructor. | |
bool | operator() (const value_type &a, const value_type &b) const |
Compare if a < b. | |
Protected Attributes | |
value_type | tol |
Tolerance. | |
A functor for comparing floating-point numbers to some tolerance.
The difference between this and standard < is that if |a-b| < tol, then this always returns false as a and b are treated as equal.