[Numpy-discussion] inconsistency in np.isclose
Andrew Nelson
andyfaff at gmail.com
Thu Jan 14 19:48:31 EST 2016
Hi all,
I think there is an inconsistency with np.isclose when I compare two
numbers:
>>> np.isclose(0, np.inf)
array([False], dtype=bool)
>>> np.isclose(0, 1)
False
The first comparison returns a bool array, the second returns a bool.
Shouldn't they both return the same result?
--
_____________________________________
Dr. Andrew Nelson
_____________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20160115/c900bbc0/attachment.html>
More information about the NumPy-Discussion
mailing list