Gaudi Framework, version v23r0

Home   Generated: Mon Jan 30 2012
Public Member Functions | Private Member Functions | Private Attributes

Gaudi::Math::Lomont< double > Class Template Reference

the specialization for double numbers More...

#include <Lomont.h>

Inheritance diagram for Gaudi::Math::Lomont< double >:
Inheritance graph
[legend]
Collaboration diagram for Gaudi::Math::Lomont< double >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Lomont (const unsigned int ulps)
 constructor from ULPS:
bool operator() (const double a, const double b) const
 the only one important method:

Private Member Functions

 Lomont ()
 the default constructor is disabled

Private Attributes

unsigned int m_ulps
 the precision in "units in last place"

Detailed Description

template<>
class Gaudi::Math::Lomont< double >

the specialization for double numbers

See also:
class Gaudi::Math::Lomont
Attention:
The default precision is not specified!
See also:
Gaudi::Math::lomont_compare_float
  Gaudi::Math::Lomont<double> compare ( 500 ) ;
 
  const double a = ... ;
  const double b = ... ;

  const bool equal = compare ( a , b ) ;
Author:
Vanya BELYAEV Ivan.Belyaev@nikhef.nl
Date:
2009-10-22

Definition at line 202 of file Lomont.h.


Constructor & Destructor Documentation

Gaudi::Math::Lomont< double >::Lomont ( const unsigned int  ulps ) [inline]

constructor from ULPS:

Definition at line 208 of file Lomont.h.

: m_ulps ( ulps ) {}
Gaudi::Math::Lomont< double >::Lomont (  ) [private]

the default constructor is disabled


Member Function Documentation

bool Gaudi::Math::Lomont< double >::operator() ( const double  a,
const double  b 
) const [inline]

the only one important method:

Definition at line 213 of file Lomont.h.

      { return lomont_compare_double ( a , b , m_ulps ) ; }

Member Data Documentation

unsigned int Gaudi::Math::Lomont< double >::m_ulps [private]

the precision in "units in last place"

Definition at line 224 of file Lomont.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines

Generated at Mon Jan 30 2012 13:53:31 for Gaudi Framework, version v23r0 by Doxygen version 1.7.2 written by Dimitri van Heesch, © 1997-2004