| The Gaudi Framework v27r1

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

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

The equality comparison of double numbers using as the metric the maximal number of Units in the Last Place (ULP). More...

`#include <GaudiKernel/Lomont.h>`

## Detailed Description

### template<class TYPE>
class Gaudi::Math::Lomont< TYPE >

The equality comparison of double numbers using as the metric the maximal number of Units in the Last Place (ULP).

It is a slightly modified version of very efficient implementation of the initial Bruce Dawson's algorithm by Chris Lomont.

See also
  www.lomont.org
  http://www.cygnus-software.com/papers/comparingfloats/comparingfloats.htm

C.Lomont claims the algorithm is factor 2-10 more efficient with respect to classical Knuth's algorithm for comparison of the floating number using the relative precision.

Attention
  Only the specializations of this class has sense!

Author
  Vanya BELYAEV Ivan..nosp@m.Bely.nosp@m.aev@n.nosp@m.ikhe.nosp@m.f.nl

Date
  2009-10-22

Definition at line 38 of file Lomont.h.

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

- GaudiKernel/GaudiKernel/Lomont.h