-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Closed
Milestone
Description
matplotlib/lib/matplotlib/tests/test_colors.py
Lines 577 to 579 in 4cf54f4
# This returns exactly 0.5 when longdouble is extended precision (80-bit), | |
# but only a value close to it when it is quadruple precision (128-bit). | |
np.testing.assert_array_almost_equal_nulp(norm(1 + 50 * eps), 0.5) |
This seems to be a bit too strict now, as it is failing on aarch64, ppc64le, and s390x, where the result is 0.50096339.
Also, on my 64-bit AMD system, which is apparently using np.float128
for np.longdouble
(though I don't know if that means 80-bit internally), it seems to return 0.5 exactly, which seems the opposite of the comment.
Originally posted by @QuLogic in #21634 (comment)
Metadata
Metadata
Assignees
Labels
No labels