To be used instead of operator== for numeric types Implemented as functor instead of free function because of specialisation rationale: operator== on builtin types can not be overloaded. More...
#include <algorithm.hpp>
Public Member Functions | |
| is_equal (typename type_traits< T >::real_type tolerance) | |
| bool | operator() (const T &a, const T &b) |
Public Attributes | |
| type_traits< T >::real_type | tolerance_ |
To be used instead of operator== for numeric types Implemented as functor instead of free function because of specialisation rationale: operator== on builtin types can not be overloaded.
Definition at line 14 of file algorithm.hpp.
| boost::numeric::bindings::traits::is_equal< T >::is_equal | ( | typename type_traits< T >::real_type | tolerance | ) | [inline] |
Definition at line 16 of file algorithm.hpp.
| bool boost::numeric::bindings::traits::is_equal< T >::operator() | ( | const T & | a, | |
| const T & | b | |||
| ) | [inline] |
Definition at line 18 of file algorithm.hpp.
References Py::abs(), and boost::numeric::bindings::traits::is_equal< T >::tolerance_.
| type_traits< T >::real_type boost::numeric::bindings::traits::is_equal< T >::tolerance_ |
Definition at line 24 of file algorithm.hpp.
Referenced by boost::numeric::bindings::traits::is_equal< T >::operator()().
1.6.1