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

In This Package:

LHCbMath.h File Reference

Collection of math related functions for general use in LHCb. More...

#include <cmath>
#include <algorithm>
#include <functional>
#include "boost/call_traits.hpp"
#include "boost/integer_traits.hpp"
#include "boost/static_assert.hpp"

Include dependency graph for LHCbMath.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


Namespaces

namespace  LHCb
namespace  LHCb::Math

Classes

struct  LHCb::Math::abs_less< TYPE >
 comparison by absolute value More...
struct  LHCb::Math::abs_greater< TYPE >
 comparison by absolute value More...
struct  LHCb::Math::Equal_To< TYPE >
 helper structure for comparison of floating values More...
struct  LHCb::Math::Equal_To< const TYPE >
 partial specialization for const-types More...
struct  LHCb::Math::Equal_To< TYPE & >
 partial specialization for references More...
struct  LHCb::Math::Equal_To< double >
 explicit specialization for doubles More...
struct  LHCb::Math::Equal_To< long double >
 explicit specialization for long doubles More...
struct  LHCb::Math::Equal_To< float >
 explicit specialization for floats More...

Defines

#define LHCBMATH_LHCBMATH_H   1

Functions

template<class TYPE>
TYPE LHCb::Math::absMin (TYPE v1, TYPE v2)
 return "min_by_abs"
template<class TYPE>
TYPE LHCb::Math::absMax (TYPE v1, TYPE v2)
 return "max_by_abs"
bool LHCb::Math::equal_to_double (const double value1, const double value2, const double epsilon=1.0e-6)
 compare two double numbers with relative precision 'epsilon'
int LHCb::Math::round (const double x)
 Round to nearest integer.
int LHCb::Math::round (const float x)
 Round to nearest integer.
bool LHCb::Math::equal_to_int (const double val, const int ref, const double eps1=1.e-6, const double eps2=0.5e-3/boost::integer_traits< int >::const_max)
 check if the double value is actually equal to the integer value
bool LHCb::Math::equal_to_int (const int ref, const double val, const double eps1=1.e-6, const double eps2=0.5e-3/boost::integer_traits< int >::const_max)
 check if the double value is actually equal to the integer value
bool LHCb::Math::equal_to_uint (const double val, const unsigned int ref, const double eps1=1.e-6, const double eps2=1.e-3/boost::integer_traits< unsigned int >::const_max)
 check if the double value is actually equal to the unsigned integer value
bool LHCb::Math::equal_to_uint (const unsigned int ref, const double val, const double eps1=1.e-6, const double eps2=1.e-3/boost::integer_traits< unsigned int >::const_max)
 check if the double value is actually equal to the integer value

Variables

static const double LHCb::Math::hiTolerance = 1e-40
 Parameters for numerical calculations (M.Needham).
static const double LHCb::Math::lowTolerance = 1e-20
static const double LHCb::Math::looseTolerance = 1e-5
static const double LHCb::Math::sqrt_12 = 3.4641016151377546
static const double LHCb::Math::inv_sqrt_12 = 0.2886751345948129

Detailed Description

Collection of math related functions for general use in LHCb.

CVS Log :-

Id
LHCbMath.h,v 1.7 2008/10/01 13:49:56 ibelyaev Exp

Author:
Juan PALACIOS
Date:
2005-11-21

Definition in file LHCbMath.h.


Define Documentation

#define LHCBMATH_LHCBMATH_H   1

Definition at line 14 of file LHCbMath.h.

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

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