Enum NDIterGlobalFlags
Global flags passed to iterator construction. Bit values match NumPy's NPY_ITER_* constants exactly (see numpy/_core/include/numpy/ndarraytypes.h).
[Flags]
public enum NDIterGlobalFlags : uint
- Extension Methods
Fields
None = 0C_INDEX = 1Track a C-order flat index. (NPY_ITER_C_INDEX)
F_INDEX = 2Track an F-order flat index. (NPY_ITER_F_INDEX)
MULTI_INDEX = 4Track a multi-index. (NPY_ITER_MULTI_INDEX)
EXTERNAL_LOOP = 8Expose inner loop to external code. (NPY_ITER_EXTERNAL_LOOP)
COMMON_DTYPE = 16Find common dtype for all operands. (NPY_ITER_COMMON_DTYPE)
REFS_OK = 32Allow object dtype arrays (not supported in NumSharp). (NPY_ITER_REFS_OK)
ZEROSIZE_OK = 64Allow zero-size arrays. (NPY_ITER_ZEROSIZE_OK)
REDUCE_OK = 128Allow reduction operands. (NPY_ITER_REDUCE_OK)
RANGED = 256Enable ranged iteration. (NPY_ITER_RANGED)
BUFFERED = 512Enable buffering. (NPY_ITER_BUFFERED)
GROWINNER = 1024Grow inner loop when possible. (NPY_ITER_GROWINNER)
DELAY_BUFALLOC = 2048Delay buffer allocation until Reset. (NPY_ITER_DELAY_BUFALLOC)
DONT_NEGATE_STRIDES = 4096Don't negate strides for axes iterated in reverse. (NPY_ITER_DONT_NEGATE_STRIDES)
COPY_IF_OVERLAP = 8192Copy operands if they overlap in memory. (NPY_ITER_COPY_IF_OVERLAP)
OVERLAP_ASSUME_ELEMENTWISE = 1073741824Assume elementwise access for overlap detection. (NPY_ITER_OVERLAP_ASSUME_ELEMENTWISE) Note: NumPy places this in the per-operand bit range (0x40000000), but it is passed alongside global flags. Kept here for API compatibility with earlier NumSharp releases.