[Scipy-svn] r3898 - trunk/scipy/splinalg/eigen/arpack/tests

scipy-svn@scip... scipy-svn@scip...
Wed Feb 6 12:25:10 CST 2008


Author: hagberg
Date: 2008-02-06 12:25:05 -0600 (Wed, 06 Feb 2008)
New Revision: 3898

Modified:
   trunk/scipy/splinalg/eigen/arpack/tests/test_speigs.py
Log:
Adjust imports and use LinearOperator in test_speigs


Modified: trunk/scipy/splinalg/eigen/arpack/tests/test_speigs.py
===================================================================
--- trunk/scipy/splinalg/eigen/arpack/tests/test_speigs.py	2008-02-06 17:56:43 UTC (rev 3897)
+++ trunk/scipy/splinalg/eigen/arpack/tests/test_speigs.py	2008-02-06 18:25:05 UTC (rev 3898)
@@ -2,8 +2,10 @@
 
 from scipy.testing import *
 
-from scipy.sandbox.arpack.speigs import *
+from scipy.splinalg.interface import aslinearoperator
+from scipy.splinalg.eigen.arpack.speigs import *
 
+
 import numpy as N
 
 class TestEigs(TestCase):
@@ -22,8 +24,8 @@
         vals = vals[uv_sortind]
         vecs = vecs[:,uv_sortind]
 
-        from scipy.splinalg.interface import aslinearoperator
-        matvec = aslinearoperator(A).matvec
+        A=aslinearoperator(A)
+        matvec = A.matvec
         #= lambda x: N.asarray(A*x)[0]
         nev=4
         eigvs = ARPACK_eigs(matvec, A.shape[0], nev=nev)



More information about the Scipy-svn mailing list