ndarray
NumPy-friendly multidimensional arrays in C++
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
ndarray::ApproximatelyEqual< T1, T2 > Struct Template Reference

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)
 

Detailed Description

template<typename T1, typename T2 = T1>
struct ndarray::ApproximatelyEqual< T1, T2 >

Binary predicate for floating point equality comparison with tolerance.

Implementation is roughly modeled after the floating point comparisons in the Boost.Test library.


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