[Scipy-svn] r6214 - trunk/scipy/sparse/linalg/eigen/arpack

scipy-svn@scip... scipy-svn@scip...
Thu Feb 4 22:31:54 CST 2010


Author: cdavid
Date: 2010-02-04 22:31:54 -0600 (Thu, 04 Feb 2010)
New Revision: 6214

Modified:
   trunk/scipy/sparse/linalg/eigen/arpack/arpack.py
Log:
BUG: fix error message for non-square input to arpack.eigen.

Modified: trunk/scipy/sparse/linalg/eigen/arpack/arpack.py
===================================================================
--- trunk/scipy/sparse/linalg/eigen/arpack/arpack.py	2010-02-03 05:14:38 UTC (rev 6213)
+++ trunk/scipy/sparse/linalg/eigen/arpack/arpack.py	2010-02-05 04:31:54 UTC (rev 6214)
@@ -129,7 +129,7 @@
     """
     A = aslinearoperator(A)
     if A.shape[0] != A.shape[1]:
-        raise ValueError('expected square matrix (shape=%s)' % shape)
+        raise ValueError('expected square matrix (shape=%s)' % A.shape)
     n = A.shape[0]
 
     # guess type



More information about the Scipy-svn mailing list