[Numpy-discussion] [Feature Suggestion]More comparison functions for floating point numbers
cy18
thecy18 at gmail.com
Mon Oct 19 06:06:31 EDT 2015
I think these would be useful and easy to implement.
greater_close(a, b) = greater_equal(a, b) | isclose(a, b)
less_close(a, b) = less_equal(a, b) | isclose(a, b)
greater_no_close = greater(a, b) & ~isclose(a, b)
less_no_close = less(a, b) & ~isclose(a, b)
The results are element-wise, just like the original functions.
I'm not sure if it is useful enough to be a part of numpy. If so, I will
try to implement them and make a pull request.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20151019/90981a22/attachment.html>
More information about the NumPy-Discussion
mailing list