diff options
author | Adam <20021670+adam4130@users.noreply.github.com> | 2020-04-17 22:26:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-17 15:26:07 -0500 |
commit | 11c1e161be588da14a501f54d8a3974bee7a03f3 (patch) | |
tree | 941944aa6a47ef6070e04e67094532ff88eea4c2 /numpy/array_api/_array_object.py | |
parent | 73e7d8e82efde0fbed5b888f31bd894d5d7d6936 (diff) | |
download | numpy-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