Hammer
1.0.0
Helicity Amplitude Module for Matrix Element Reweighting
|
#include <complex>
#include <limits>
Go to the source code of this file.
Namespaces | |
Hammer | |
The Hammer namespace contains the library code. | |
Functions | |
bool | Hammer::isZero (const std::complex< double > val) |
bool | Hammer::isZero (const double val) |
bool | Hammer::fuzzyLess (const double val1, const double val2) |
double | Hammer::compareVals (const double val1, const double val2) |
complex< double > | Hammer::compareVals (const std::complex< double > val1, const std::complex< double > val2) |
double | Hammer::regularize (const double regularVal, const double problematicValue, const double delta=std::numeric_limits< double >::min(), int direction=0) |
template<typename T > | |
std::enable_if < std::is_arithmetic< typename std::remove_reference< T > ::type >::value, double > ::type | Hammer::toDouble (T value) |
template<typename T > | |
std::enable_if< std::is_same < typename std::remove_reference < typename std::remove_cv< T > ::type >::type, std::string > ::value, double >::type | Hammer::toDouble (T value) |
template<typename T > | |
std::enable_if< std::is_same < typename std::remove_reference < typename std::remove_cv< T > ::type >::type, std::complex < double > >::value, double > ::type | Hammer::toDouble (T value) |
template<typename T > | |
std::enable_if < std::is_unsigned< T >::value &&std::is_integral< T >::value, T >::type | Hammer::minPadding (T value) |
Variables | |
static const double | Hammer::precision = 0.001 |