We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c698bc2 commit ce86ca5Copy full SHA for ce86ca5
numpy/core/tests/test_umath_accuracy.py
@@ -52,3 +52,9 @@ def test_validate_transcendentals(self):
52
outval = outval[perm]
53
maxulperr = data_subset['ulperr'].max()
54
assert_array_max_ulp(npfunc(inval), outval, maxulperr)
55
+
56
+ def test_ignore_nan_ulperror(self):
57
+ # Ignore ULP differences between various NAN's
58
+ nan1_f32 = np.array(str_to_float('0xffffffff'), dtype=np.float32)
59
+ nan2_f32 = np.array(str_to_float('0x7fddbfbf'), dtype=np.float32)
60
+ assert_array_max_ulp(nan1_f32, nan2_f32, 0)
0 commit comments