ndarray
NumPy-friendly multidimensional arrays in C++
|
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) | |
Binary predicate for floating point equality comparison with tolerance.
Implementation is roughly modeled after the floating point comparisons in the Boost.Test library.