numpy.pxd: Iterator macros
authorDag Sverre Seljebotn <dagss@student.matnat.uio.no>
Thu, 15 Oct 2009 06:08:59 +0000 (08:08 +0200)
committerDag Sverre Seljebotn <dagss@student.matnat.uio.no>
Thu, 15 Oct 2009 06:08:59 +0000 (08:08 +0200)
Cython/Includes/numpy.pxd

index 50e9f16a6e6f9b23929dad2cfa1f7cfa6a2b6915..f57761527c967cf9b9da6735b86f03e35492518e 100644 (file)
@@ -469,6 +469,13 @@ cdef extern from "numpy/arrayobject.h":
     object PyArray_Take(ndarray ap, object items, int axis)
     object PyArray_Put(ndarray ap, object items, object values)
 
+    void PyArray_ITER_RESET(flatiter it) nogil
+    void PyArray_ITER_NEXT(flatiter it) nogil
+    void PyArray_ITER_GOTO(flatiter it, npy_intp* destination) nogil
+    void PyArray_ITER_GOTO1D(flatiter it, npy_intp ind) nogil
+    void* PyArray_ITER_DATA(flatiter it) nogil
+    bint PyArray_ITER_NOTDONE(flatiter it) nogil
+
     void PyArray_MultiIter_RESET(broadcast multi) nogil
     void PyArray_MultiIter_NEXT(broadcast multi) nogil
     void PyArray_MultiIter_GOTO(broadcast multi, npy_intp dest) nogil