diff options
author | Eric Moore <ewm@redtetrahedron.org> | 2013-10-29 18:40:30 -0400 |
---|---|---|
committer | Eric Moore <ewm@redtetrahedron.org> | 2013-10-29 18:40:30 -0400 |
commit | 753d611615d4d98c37a207940c8648dc15329f66 (patch) | |
tree | 5ae757d649656be82f0608dc2dc2f3544fb76c0d /numpy/polynomial/polyutils.py | |
parent | 54d3559c325be26f8fee71e1c669cc502286dc77 (diff) | |
download | numpy-753d611615d4d98c37a207940c8648dc15329f66.tar.gz |
BUG: fix handling of infs in hypot on windows
On any platform where we used our own implementation of hypot, (e.g.
windows) there were several issues with infs.
hypot(inf, y) == inf, for all y including nan. We now check for inf and
handle this case explicitly for all y instead of just y = nan.
Although hypot(inf, 0) was correctly returning inf, it was incorrectly
raising the invalid floating point exception.
Fixes gh-2385
Diffstat (limited to 'numpy/polynomial/polyutils.py')
0 files changed, 0 insertions, 0 deletions