[pypy-commit] pypy matrixmath-dot: dot seems to work, more of a proof-of-concept than usable

mattip noreply at buildbot.pypy.org
Mon Dec 5 22:42:19 CET 2011


Author: mattip
Branch: matrixmath-dot
Changeset: r50198:8ee1a24557b8
Date: 2011-12-05 23:31 +0200
http://bitbucket.org/pypy/pypy/changeset/8ee1a24557b8/

Log:	dot seems to work, more of a proof-of-concept than usable

diff --git a/pypy/module/micronumpy/interp_numarray.py b/pypy/module/micronumpy/interp_numarray.py
--- a/pypy/module/micronumpy/interp_numarray.py
+++ b/pypy/module/micronumpy/interp_numarray.py
@@ -152,7 +152,7 @@
         return arr
 
     def done(self):
-        return self.offset >= self.size
+        return self.offset == self.size
 
     def get_offset(self):
         return self.offset
@@ -556,7 +556,6 @@
             value = w_res.descr_sum(space)
             arr.setitem(out_iter.get_offset(), value)
             out_iter = out_iter.next(out_ndims)
-            ii += 1
         return arr
 
     def get_concrete(self):


More information about the pypy-commit mailing list