Stokhos  Development
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Public Member Functions | Protected Attributes | List of all members
Stokhos::FloatingPointLess< value_type > Class Template Reference

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.
 

Detailed Description

template<typename value_type>
class Stokhos::FloatingPointLess< value_type >

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.


The documentation for this class was generated from the following file: