summaryrefslogtreecommitdiff
path: root/numpy/polynomial/polyutils.py
diff options
context:
space:
mode:
authorEric Moore <ewm@redtetrahedron.org>2013-10-29 18:40:30 -0400
committerEric Moore <ewm@redtetrahedron.org>2013-10-29 18:40:30 -0400
commit753d611615d4d98c37a207940c8648dc15329f66 (patch)
tree5ae757d649656be82f0608dc2dc2f3544fb76c0d /numpy/polynomial/polyutils.py
parent54d3559c325be26f8fee71e1c669cc502286dc77 (diff)
downloadnumpy-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