#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 |
CVS Log :-
Definition in file LHCbMath.h.
| #define LHCBMATH_LHCBMATH_H 1 |
Definition at line 14 of file LHCbMath.h.
1.4.7