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

Binary predicate for complex floating point equality comparison with tolerance. More...

#include <types.h>

Public Types

typedef std::complex< U1 > first_argument_type
 
typedef std::complex< U2 > second_argument_type
 
typedef bool result_type
 
typedef Promote< U1, U2 >::Type Promoted
 

Public Member Functions

result_type operator() (std::complex< U1 > const &a, std::complex< U2 > const &b) const
 
 ApproximatelyEqual (Promoted tolerance)
 

Detailed Description

template<typename U1, typename U2>
struct ndarray::ApproximatelyEqual< std::complex< U1 >, std::complex< U2 > >

Binary predicate for complex 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: