[Numpy-svn] r3515 - trunk/numpy/core/include/numpy

numpy-svn at scipy.org numpy-svn at scipy.org
Sun Jan 21 03:35:12 CST 2007


Author: oliphant
Date: 2007-01-21 03:34:59 -0600 (Sun, 21 Jan 2007)
New Revision: 3515

Modified:
   trunk/numpy/core/include/numpy/ndarrayobject.h
Log:
Add a NOTDONE test for iterators.

Modified: trunk/numpy/core/include/numpy/ndarrayobject.h
===================================================================
--- trunk/numpy/core/include/numpy/ndarrayobject.h	2007-01-19 22:57:02 UTC (rev 3514)
+++ trunk/numpy/core/include/numpy/ndarrayobject.h	2007-01-21 09:34:59 UTC (rev 3515)
@@ -1495,7 +1495,10 @@
 
 #define PyArray_ITER_DATA(it) (((PyArrayIterObject *)(it))->dataptr)
 
+#define PyArray_ITER_NOTDONE(it) (((PyArrayIterObject *)(it))->index <  \
+                                  ((PyArrayIterObject *)(it))->size)
 
+
 /*
    Any object passed to PyArray_Broadcast must be binary compatible with
    this structure.



More information about the Numpy-svn mailing list