[Numpy-svn] [numpy/numpy] 753d61: BUG: fix handling of infs in hypot on windows
GitHub
noreply at github.com
Wed Oct 30 04:50:14 EDT 2013
Branch: refs/heads/master
Home: https://github.com/numpy/numpy
Commit: 753d611615d4d98c37a207940c8648dc15329f66
https://github.com/numpy/numpy/commit/753d611615d4d98c37a207940c8648dc15329f66
Author: Eric Moore <ewm at redtetrahedron.org>
Date: 2013-10-29 (Tue, 29 Oct 2013)
Changed paths:
M numpy/core/src/npymath/npy_math.c.src
M numpy/core/tests/test_umath.py
Log Message:
-----------
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
Commit: eb40f65c66545a717b36b1af669b1ee00fbfc508
https://github.com/numpy/numpy/commit/eb40f65c66545a717b36b1af669b1ee00fbfc508
Author: Julian Taylor <juliantaylor108 at googlemail.com>
Date: 2013-10-30 (Wed, 30 Oct 2013)
Changed paths:
M numpy/core/src/npymath/npy_math.c.src
M numpy/core/tests/test_umath.py
Log Message:
-----------
Merge pull request #3992 from ewmoore/winhypot
BUG: hypot(inf, 0) shouldn't raise a warning
Compare: https://github.com/numpy/numpy/compare/e7802e7c3ace...eb40f65c6654
More information about the Numpy-svn
mailing list