LSSTApplications
10.0-2-g4f67435,11.0.rc2+1,11.0.rc2+12,11.0.rc2+3,11.0.rc2+4,11.0.rc2+5,11.0.rc2+6,11.0.rc2+7,11.0.rc2+8
LSSTDataManagementBasePackage
|
Binary predicate for floating point equality comparison with tolerance. More...
#include <types.h>
Public Types | |
typedef T1 | first_argument_type |
typedef T2 | second_argument_type |
typedef bool | result_type |
typedef Promote< T1, T2 >::Type | Promoted |
typedef detail::SafeFloatingPointOps < Promoted > | Ops |
Public Member Functions | |
result_type | operator() (T1 a, T2 b) const |
ApproximatelyEqual (Promoted tolerance) | |
Private Attributes | |
Promoted | _tolerance |
Binary predicate for floating point equality comparison with tolerance.
Implementation is roughly modeled after the floating point comparisons in the Boost.Test library.
typedef T1 ndarray::ApproximatelyEqual< T1, T2 >::first_argument_type |
typedef detail::SafeFloatingPointOps<Promoted> ndarray::ApproximatelyEqual< T1, T2 >::Ops |
typedef Promote<T1,T2>::Type ndarray::ApproximatelyEqual< T1, T2 >::Promoted |
typedef bool ndarray::ApproximatelyEqual< T1, T2 >::result_type |
typedef T2 ndarray::ApproximatelyEqual< T1, T2 >::second_argument_type |
|
inlineexplicit |
|
inline |
|
private |