Celeritas 0.6.0-110+develop.c7dc37d1
Loading...
Searching...
No Matches
Public Member Functions | List of all members
celeritas::SoftClose< RealType > Class Template Reference

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.
 

Detailed Description

template<class RealType = ::celeritas::real_type>
class celeritas::SoftClose< RealType >

Functor for comparing values with an absolute precision.

Constructor & Destructor Documentation

◆ SoftClose()

template<class RealType >
CELER_FUNCTION celeritas::SoftClose< RealType >::SoftClose ( value_type  abs)

Construct with absolute precision.

Parameters
absthreshold for absolute error (default 1.0e-14 for doubles)

The documentation for this class was generated from the following file: