[Numpy-svn] r5214 - trunk/numpy/linalg/tests
numpy-svn at scipy.org
numpy-svn at scipy.org
Wed May 21 17:38:14 EDT 2008
Author: charris
Date: 2008-05-21 16:38:11 -0500 (Wed, 21 May 2008)
New Revision: 5214
Modified:
trunk/numpy/linalg/tests/test_regression.py
Log:
Fix ordering assumption in regression test.
Modified: trunk/numpy/linalg/tests/test_regression.py
===================================================================
--- trunk/numpy/linalg/tests/test_regression.py 2008-05-21 20:25:14 UTC (rev 5213)
+++ trunk/numpy/linalg/tests/test_regression.py 2008-05-21 21:38:11 UTC (rev 5214)
@@ -12,7 +12,7 @@
class TestRegression(NumpyTestCase):
def test_eig_build(self, level = rlevel):
"""Ticket #652"""
- rva = [1.03221168e+02 +0.j,
+ rva = array([1.03221168e+02 +0.j,
-1.91843603e+01 +0.j,
-6.04004526e-01+15.84422474j,
-6.04004526e-01-15.84422474j,
@@ -24,11 +24,13 @@
7.80732773e+00 +0.j ,
-7.65390898e-01 +0.j,
1.51971555e-15 +0.j ,
- -1.51308713e-15 +0.j]
+ -1.51308713e-15 +0.j])
a = arange(13*13, dtype = float64)
a.shape = (13,13)
a = a%17
va, ve = linalg.eig(a)
+ va.sort()
+ rva.sort()
assert_array_almost_equal(va, rva)
def test_eigh_build(self, level = rlevel):
More information about the Numpy-svn
mailing list