[Scipy-svn] r2720 - trunk/Lib/sparse
scipy-svn@scip...
scipy-svn@scip...
Thu Feb 15 16:29:55 CST 2007
Author: wnbell
Date: 2007-02-15 16:29:50 -0600 (Thu, 15 Feb 2007)
New Revision: 2720
Modified:
trunk/Lib/sparse/sparse.py
Log:
Applied patch to spmatrix.dot(). Resolves ticket #374
Modified: trunk/Lib/sparse/sparse.py
===================================================================
--- trunk/Lib/sparse/sparse.py 2007-02-15 21:54:35 UTC (rev 2719)
+++ trunk/Lib/sparse/sparse.py 2007-02-15 22:29:50 UTC (rev 2720)
@@ -315,7 +315,7 @@
if len(other.shape) == 1:
result = self.matvec(other)
- elif isdense(other) and asarray(other).squeeze().ndim == 1:
+ elif isdense(other) and asarray(other).squeeze().ndim <= 1:
# If it's a row or column vector, return a DENSE result
result = self.matvec(other)
elif len(other.shape) == 2:
More information about the Scipy-svn
mailing list