update to cython code, thanks to artemyk for implementation
"""
Low level implementation of scalar `allclose`.
"""
-import sys
-cdef extern from "math.h":
- double fabs(double)
- int isinf(double)
- int isnan(double)
-
-cdef extern from "float.h":
- double fabs(double)
- int _isnan(double)
- int _finite(double)
-
-
-if sys.platform in ('win32', 'cygwin'):
- def isnan(double x):
- return _isnan(x)
- def isinf(double x):
- return 1 - _finite(x)
+from libc.math cimport isnan, isinf, fabs
def close(double x, double y, double rtol, double atol):
