LSSTApplications
10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
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 |