| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Lomont.cpp File Reference

#include <iostream>
#include <limits>
#include <cassert>
#include <cmath>
#include <vector>
#include "LHCbMath/Lomont.h"
#include "boost/static_assert.hpp"
#include "boost/integer_traits.hpp"

Include dependency graph for Lomont.cpp:

Go to the source code of this file.


Typedefs

typedef long Long
typedef unsigned long ULong
typedef long long Long
typedef unsigned long long ULong
typedef _Longs::Long Long
 get the final types:
typedef _Longs::ULong ULong

Functions

bool LHCb::Math::lomont_compare_float (const float af, const float bf, const unsigned short maxULPs=100)
 equality comparison of float numbers using as the metric the maximal number of Units in the Last Place (ULP).
float LHCb::Math::next_float (const float af, const short ulps)
 Get the floating number that representation is different with respect to the argument for the certain number of "Units in the Last Position".
 BOOST_STATIC_ASSERT (std::numeric_limits< double >::is_specialized &&std::numeric_limits< Long >::is_specialized &&std::numeric_limits< ULong >::is_specialized &&boost::integer_traits< ULong >::is_specialized &&boost::integer_traits< Long >::is_specialized &&sizeof(double)==sizeof(Long)&&sizeof(double)==sizeof(ULong)&&64==std::numeric_limits< ULong >::digits)
 the final check
bool LHCb::Math::lomont_compare_double (const double af, const double bf, const unsigned int maxULPs)
 equality comparison of float numbers using as the metric the maximal number of Units in the Last Place (ULP).
double LHCb::Math::next_double (const double af, const short ulps)
 Get the floating number that representation is different with respect to the argument for the certain number of "Units in the Last Position".

Typedef Documentation

typedef long Long

Definition at line 138 of file Lomont.cpp.

typedef unsigned long ULong

Definition at line 139 of file Lomont.cpp.

typedef long long Long

Definition at line 144 of file Lomont.cpp.

typedef unsigned long long ULong

Definition at line 145 of file Lomont.cpp.

typedef _Longs::Long Long [static]

get the final types:

Definition at line 151 of file Lomont.cpp.

typedef _Longs::ULong ULong [static]

Definition at line 152 of file Lomont.cpp.


Function Documentation

@0::BOOST_STATIC_ASSERT ( std::numeric_limits< double >::is_specialized &&std::numeric_limits< Long >::is_specialized &&std::numeric_limits< ULong >::is_specialized &&boost::integer_traits< ULong >::is_specialized &&boost::integer_traits< Long >::is_specialized &&  sizeof(double) = =sizeof(Long)&&sizeof(double)==sizeof(ULong)&&64==std::numeric_limits< ULong >::digits  )  [static]

the final check

| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Mon Apr 11 20:02:58 2011 for LHCbMath by doxygen 1.4.7