Stokhos Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros 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. 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...
 

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.

Definition at line 903 of file Stokhos_ProductBasisUtils.hpp.

Constructor & Destructor Documentation

template<typename value_type>
Stokhos::FloatingPointLess< value_type >::FloatingPointLess ( const value_type &  tol_ = 1.0e-12)
inline

Constructor.

Definition at line 907 of file Stokhos_ProductBasisUtils.hpp.

template<typename value_type>
Stokhos::FloatingPointLess< value_type >::~FloatingPointLess ( )
inline

Destructor.

Definition at line 910 of file Stokhos_ProductBasisUtils.hpp.

Member Function Documentation

template<typename value_type>
bool Stokhos::FloatingPointLess< value_type >::operator() ( const value_type &  a,
const value_type &  b 
) const
inline

Compare if a < b.

Definition at line 913 of file Stokhos_ProductBasisUtils.hpp.

Member Data Documentation

template<typename value_type>
value_type Stokhos::FloatingPointLess< value_type >::tol
protected

Tolerance.

Definition at line 920 of file Stokhos_ProductBasisUtils.hpp.


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