summaryrefslogtreecommitdiff
path: root/numpy/array_api/_array_object.py
diff options
context:
space:
mode:
authorAdam <20021670+adam4130@users.noreply.github.com>2020-04-17 22:26:07 +0200
committerGitHub <noreply@github.com>2020-04-17 15:26:07 -0500
commit11c1e161be588da14a501f54d8a3974bee7a03f3 (patch)
tree941944aa6a47ef6070e04e67094532ff88eea4c2 /numpy/array_api/_array_object.py
parent73e7d8e82efde0fbed5b888f31bd894d5d7d6936 (diff)
downloadnumpy-11c1e161be588da14a501f54d8a3974bee7a03f3.tar.gz
BUG: Fix inf and NaN-warnings in half float `nextafter` (#15988)
This commit fixes the at `nextafter(np.inf, ...)` should not return NaN unless the second value is NaN. Also `nextafter(NaN, ...)` and `nextafter(..., NaN) should not give the invalid value warning (no invalid value is created, the invalid value is propagated). This aligns half-float `nextafter` with double/float `nextafter`. Closes #15977
Diffstat (limited to 'numpy/array_api/_array_object.py')
0 files changed, 0 insertions, 0 deletions