BUG: Ignore differences in NAN for computing ULP differences#15598
BUG: Ignore differences in NAN for computing ULP differences#15598mattip merged 3 commits intonumpy:masterfrom
Conversation
02f413d to
8047edd
Compare
8047edd to
0e51583
Compare
|
Thanks, do you think it might make sense to push it even further down to the |
|
not so sure about that, it is the max ULP diff function that doesn't want to differentiate between NAN's. The |
|
|
|
@r-devulap any reasons you are using |
0e51583 to
8f25b48
Compare
Thanks :) |
sine and cosine of large numbers are always computed via the standard C library and the results vary depending on the platform.
|
@r-devulap looks good to me, would you be up for adding a test as well, since I think the ulp thing is arguably a bug fix in our testing utils, and also testing utils need testing :). |
|
Sure, what do you have in mind? ensure ulp error between two different representations of NAN = 0? |
|
@seberg let me know if that suffices. |
|
Test would be nicer if you move it into |
|
I think there is more to do with the umath_accuracy test but this solves the current issues. xref gh-15605 for some possible improvements |
|
Thanks @r-devulap for the quick response |
Fixes #15593