1 #ifndef PYTHONIC_INCLUDE_NUMPY_ALLCLOSE_HPP 2 #define PYTHONIC_INCLUDE_NUMPY_ALLCLOSE_HPP 3 4 #include "pythonic/include/utils/functor.hpp" 5 #include "pythonic/include/types/ndarray.hpp" 6 #include "pythonic/include/numpy/abs.hpp" 7 #include "pythonic/include/numpy/isfinite.hpp" 8 9 PYTHONIC_NS_BEGIN 10 11 namespace numpy 12 { 13 template <class U, class V> 14 bool allclose(U const &u, V const &v, double rtol = 1e-5, double atol = 1e-8); 15 16 DEFINE_FUNCTOR(pythonic::numpy, allclose); 17 } 18 PYTHONIC_NS_END 19 20 #endif 21