[Scipy-svn] r4178 - trunk/scipy/sparse

scipy-svn@scip... scipy-svn@scip...
Fri Apr 25 13:48:04 CDT 2008


Author: wnbell
Date: 2008-04-25 13:48:01 -0500 (Fri, 25 Apr 2008)
New Revision: 4178

Modified:
   trunk/scipy/sparse/dok.py
Log:
small edit to dok.matvec()


Modified: trunk/scipy/sparse/dok.py
===================================================================
--- trunk/scipy/sparse/dok.py	2008-04-25 17:45:42 UTC (rev 4177)
+++ trunk/scipy/sparse/dok.py	2008-04-25 18:48:01 UTC (rev 4178)
@@ -488,7 +488,7 @@
                 raise ValueError, "dimensions do not match"
             new = [0] * self.shape[0]
             for key in self.keys():
-                new[int(key[0])] += self[key] * other[int(key[1]), ...]
+                new[int(key[0])] += self[key] * other[int(key[1])]
             new = array(new)
             if isinstance(other, matrix):
                 new = asmatrix(new)
@@ -505,7 +505,7 @@
                 raise ValueError, "dimensions do not match"
             new = [0] * self.shape[1]
             for key in self.keys():
-                new[int(key[1])] += other[..., int(key[0])] * conj(self[key])
+                new[int(key[1])] += other[int(key[0])] * conj(self[key])
             new = array(new)
             if isinstance(other, matrix):
                 new = asmatrix(new)



More information about the Scipy-svn mailing list