@@ -887,14 +887,16 @@ typedef void (*NpyIter_GetCoords_Fn )(NpyIter *iter,
887
887
#define NPY_ITER_REFS_OK 0x00000020
888
888
/* Zero-sized operands should be permitted, iteration checks IterSize for 0 */
889
889
#define NPY_ITER_ZEROSIZE_OK 0x00000040
890
+ /* Permits reductions (size-0 stride with dimension size > 1) */
891
+ #define NPY_ITER_REDUCE_OK 0x00000080
890
892
/* Enables sub-range iteration */
891
- #define NPY_ITER_RANGED 0x00000080
893
+ #define NPY_ITER_RANGED 0x00000100
892
894
/* Enables buffering */
893
- #define NPY_ITER_BUFFERED 0x00000100
895
+ #define NPY_ITER_BUFFERED 0x00000200
894
896
/* When buffering is enabled, grows the inner loop if possible */
895
- #define NPY_ITER_GROWINNER 0x00000200
897
+ #define NPY_ITER_GROWINNER 0x00000400
896
898
/* Delay allocation of buffers until first Reset* call */
897
- #define NPY_ITER_DELAY_BUFALLOC 0x00000400
899
+ #define NPY_ITER_DELAY_BUFALLOC 0x00000800
898
900
899
901
/*** Per-operand flags that may be passed to the iterator constructors ***/
900
902
@@ -919,7 +921,7 @@ typedef void (*NpyIter_GetCoords_Fn )(NpyIter *iter,
919
921
/* If an operand is allocated, don't use any subtype */
920
922
#define NPY_ITER_NO_SUBTYPE 0x02000000
921
923
/* Require that the dimension match the iterator dimensions exactly */
922
- #define NPY_ITER_NO_BROADCAST 0x04000000
924
+ #define NPY_ITER_NO_BROADCAST 0x08000000
923
925
924
926
#define NPY_ITER_GLOBAL_FLAGS 0x0000ffff
925
927
#define NPY_ITER_PER_OP_FLAGS 0xffff0000
0 commit comments