summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
Diffstat (limited to 'numpy')
-rw-r--r--numpy/core/include/numpy/ndarrayobject.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/numpy/core/include/numpy/ndarrayobject.h b/numpy/core/include/numpy/ndarrayobject.h
index 2505ad3f5..01d3feaf1 100644
--- a/numpy/core/include/numpy/ndarrayobject.h
+++ b/numpy/core/include/numpy/ndarrayobject.h
@@ -1495,6 +1495,9 @@ typedef struct {
#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