Stokhos Development
Public Member Functions | Protected Attributes
Stokhos::FloatingPointLess< value_type > Class Template Reference

A functor for comparing floating-point numbers to some tolerance. More...

#include <Stokhos_ProductBasisUtils.hpp>

List of all members.

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:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator