Celeritas 0.6.0-110+develop.c7dc37d1
|
Functor for comparing values with an absolute precision. More...
#include <SoftEqual.hh>
Public Types | |
Type aliases | |
using | value_type = RealType |
Public Member Functions | |
CELER_CONSTEXPR_FUNCTION | SoftClose () |
Construct with default absolute precision. | |
CELER_FUNCTION | SoftClose (value_type abs) |
Construct with absolute precision. | |
bool CELER_FUNCTION | operator() (value_type a, value_type b) const |
Compare two values (implicitly casting arguments) | |
CELER_CONSTEXPR_FUNCTION value_type | abs () const |
Absolute tolerance. | |
Functor for comparing values with an absolute precision.
CELER_FUNCTION celeritas::SoftClose< RealType >::SoftClose | ( | value_type | abs | ) |
Construct with absolute precision.
abs | threshold for absolute error (default 1.0e-14 for doubles) |