|
Celeritas 0.7.0-dev.165+develop.aa1269106
|
#include <cmath>#include "corecel/Assert.hh"#include "corecel/Macros.hh"#include "corecel/Types.hh"#include "detail/SoftEqualTraits.hh"Classes | |
| class | celeritas::SoftEqual< RealType > |
| Functor for noninfinite floating point equality. More... | |
| class | celeritas::EqualOr< F > |
| Compare for equality before checking with the given functor. More... | |
| class | celeritas::SoftClose< RealType > |
| Functor for comparing values with an absolute precision. More... | |
| class | celeritas::SoftZero< RealType > |
| Functor for comparing values to zero with an absolute precision. More... | |
Functions | |
| CELER_CONSTEXPR_FUNCTION real_type | celeritas::sqrt_tol () |
| Square root of the soft equivalence tolerance for Celeritas. | |
| template<class T > | |
| CELER_FUNCTION | celeritas::SoftEqual (T) -> SoftEqual< T > |
| template<class T > | |
| CELER_FUNCTION | celeritas::SoftEqual (T, T) -> SoftEqual< T > |
| template<class F > | |
| CELER_FUNCTION | celeritas::EqualOr (F &&) -> EqualOr< F > |
| template<class RealType > | |
| CELER_FUNCTION bool | celeritas::soft_equal (RealType expected, RealType actual) |
| Soft equivalence with default tolerance. | |
| template<class RealType > | |
| CELER_FUNCTION bool | celeritas::soft_near (RealType expected, RealType actual, RealType rel_error) |
| Soft equivalence with relative error. | |
| template<class RealType > | |
| CELER_FUNCTION bool | celeritas::soft_zero (RealType actual) |
| Soft equivalence to zero, with default tolerance. | |
| template<class RealType > | |
| CELER_FUNCTION bool | celeritas::soft_mod (RealType dividend, RealType divisor) |
| Soft modulo operator. | |
| CELER_CONSTEXPR_FUNCTION real_type celeritas::sqrt_tol | ( | ) |
Square root of the soft equivalence tolerance for Celeritas.
This tolerance is needed for operations where the accuracy is limited by the square root of machine precision.