Stokhos Package Browser (Single Doxygen Collection)
Version of the Day
|
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. More... | |
~FloatingPointLess () | |
Destructor. More... | |
bool | operator() (const value_type &a, const value_type &b) const |
Compare if a < b. More... | |
Protected Attributes | |
value_type | tol |
Tolerance. More... | |
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.
Definition at line 903 of file Stokhos_ProductBasisUtils.hpp.
|
inline |
Constructor.
Definition at line 907 of file Stokhos_ProductBasisUtils.hpp.
|
inline |
Destructor.
Definition at line 910 of file Stokhos_ProductBasisUtils.hpp.
|
inline |
Compare if a < b.
Definition at line 913 of file Stokhos_ProductBasisUtils.hpp.
|
protected |
Tolerance.
Definition at line 920 of file Stokhos_ProductBasisUtils.hpp.