[Scipy-svn] r3062 - trunk/Lib/sandbox/arpack/tests
scipy-svn at scipy.org
scipy-svn at scipy.org
Wed May 30 19:59:41 EDT 2007
Author: hagberg
Date: 2007-05-30 18:59:23 -0500 (Wed, 30 May 2007)
New Revision: 3062
Modified:
trunk/Lib/sandbox/arpack/tests/test_arpack.py
Log:
Modify complex symmetric single precision test of eigenvectors to only
compare to 5 decimal places. Probably a reasonable estimate for an
error in this case.
Addresses ticket #367.
Modified: trunk/Lib/sandbox/arpack/tests/test_arpack.py
===================================================================
--- trunk/Lib/sandbox/arpack/tests/test_arpack.py 2007-05-30 23:31:13 UTC (rev 3061)
+++ trunk/Lib/sandbox/arpack/tests/test_arpack.py 2007-05-30 23:59:23 UTC (rev 3062)
@@ -307,7 +307,7 @@
a,aw = self.get_a1(typ)
w,v = eigen(a,k,which='LM')
for i in range(k):
- assert_array_almost_equal(sb.dot(a,v[:,i]),w[i]*v[:,i])
+ assert_array_almost_equal(sb.dot(a,v[:,i]),w[i]*v[:,i],decimal=5)
aw.real.sort()
w.real.sort()
assert_array_almost_equal(w,aw[-k:])
More information about the Scipy-svn
mailing list