[Scipy-svn] r3905 - trunk/scipy/splinalg/eigen/arpack

scipy-svn@scip... scipy-svn@scip...
Fri Feb 8 10:07:16 CST 2008


Author: hagberg
Date: 2008-02-08 10:07:14 -0600 (Fri, 08 Feb 2008)
New Revision: 3905

Modified:
   trunk/scipy/splinalg/eigen/arpack/arpack.py
Log:
arpack: return eigenvectors as a matrix instead of array



Modified: trunk/scipy/splinalg/eigen/arpack/arpack.py
===================================================================
--- trunk/scipy/splinalg/eigen/arpack/arpack.py	2008-02-08 14:14:23 UTC (rev 3904)
+++ trunk/scipy/splinalg/eigen/arpack/arpack.py	2008-02-08 16:07:14 UTC (rev 3905)
@@ -301,7 +301,7 @@
         raise RuntimeError("Error info=%d in arpack"%info)
         return None
     if return_eigenvectors:
-        return d,z
+        return d,np.asmatrix(z)
     return d
 
 
@@ -482,5 +482,5 @@
         raise RuntimeError("Error info=%d in arpack"%info)
         return None
     if return_eigenvectors:
-        return d,z
+        return d,np.asmatrix(z)
     return d



More information about the Scipy-svn mailing list