[Numpy-svn] r3580 - trunk/numpy/core/src

numpy-svn@scip... numpy-svn@scip...
Thu Mar 15 09:45:39 CDT 2007


Author: oliphant
Date: 2007-03-15 09:45:35 -0500 (Thu, 15 Mar 2007)
New Revision: 3580

Modified:
   trunk/numpy/core/src/arrayobject.c
Log:
Fix missing addition bug.

Modified: trunk/numpy/core/src/arrayobject.c
===================================================================
--- trunk/numpy/core/src/arrayobject.c	2007-03-14 21:11:59 UTC (rev 3579)
+++ trunk/numpy/core/src/arrayobject.c	2007-03-15 14:45:35 UTC (rev 3580)
@@ -8942,7 +8942,7 @@
         for (i=0; i<multi->nd; i++) {
                 sumstrides[i] = 0;
                 for (j=0; j<multi->numiter; j++) {
-                        sumstrides[i] = multi->iters[j]->strides[i];
+                        sumstrides[i] += multi->iters[j]->strides[i];
                 }
         }
         axis=0;



More information about the Numpy-svn mailing list