[Numpy-svn] r6003 - trunk/numpy/core/tests
numpy-svn at scipy.org
numpy-svn at scipy.org
Tue Nov 11 02:55:49 EST 2008
Author: charris
Date: 2008-11-11 01:55:43 -0600 (Tue, 11 Nov 2008)
New Revision: 6003
Modified:
trunk/numpy/core/tests/test_umath.py
Log:
Make logaddexp range test less severe.
Modified: trunk/numpy/core/tests/test_umath.py
===================================================================
--- trunk/numpy/core/tests/test_umath.py 2008-11-11 07:34:25 UTC (rev 6002)
+++ trunk/numpy/core/tests/test_umath.py 2008-11-11 07:55:43 UTC (rev 6003)
@@ -66,9 +66,9 @@
assert_almost_equal(np.logaddexp2(xf, yf), zf, decimal=dec)
def test_logaddexp2_range(self) :
- x = [1000000., -1000000., 2000000., -2000000.]
- y = [2000000., -2000000., 1000000., -1000000.]
- z = [2000000., -1000000., 2000000., -1000000.]
+ x = [1000000., -1000000., 1000050., -1000050.]
+ y = [1000050., -1000050., 1000000., -1000000.]
+ z = [1000050., -1000000., 1000050., -1000000.]
for dt in ['f','d','g'] :
logxf = np.array(x, dtype=dt)
logyf = np.array(y, dtype=dt)
@@ -107,9 +107,9 @@
assert_almost_equal(np.logaddexp(xf, yf), zf, decimal=dec)
def test_logaddexp_range(self) :
- x = [1000000., -1000000., 2000000., -2000000.]
- y = [2000000., -2000000., 1000000., -1000000.]
- z = [2000000., -1000000., 2000000., -1000000.]
+ x = [1000000., -1000000., 1000050., -1000050.]
+ y = [1000050., -1000050., 1000000., -1000000.]
+ z = [1000050., -1000000., 1000050., -1000000.]
for dt in ['f','d','g'] :
logxf = np.array(x, dtype=dt)
logyf = np.array(y, dtype=dt)
More information about the Numpy-svn
mailing list