Table of Contents

Enum NDIterGlobalFlags

Namespace
NumSharp.Backends.Iteration
Assembly
NumSharp.dll

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 = 0
C_INDEX = 1

Track a C-order flat index. (NPY_ITER_C_INDEX)

F_INDEX = 2

Track an F-order flat index. (NPY_ITER_F_INDEX)

MULTI_INDEX = 4

Track a multi-index. (NPY_ITER_MULTI_INDEX)

EXTERNAL_LOOP = 8

Expose inner loop to external code. (NPY_ITER_EXTERNAL_LOOP)

COMMON_DTYPE = 16

Find common dtype for all operands. (NPY_ITER_COMMON_DTYPE)

REFS_OK = 32

Allow object dtype arrays (not supported in NumSharp). (NPY_ITER_REFS_OK)

ZEROSIZE_OK = 64

Allow zero-size arrays. (NPY_ITER_ZEROSIZE_OK)

REDUCE_OK = 128

Allow reduction operands. (NPY_ITER_REDUCE_OK)

RANGED = 256

Enable ranged iteration. (NPY_ITER_RANGED)

BUFFERED = 512

Enable buffering. (NPY_ITER_BUFFERED)

GROWINNER = 1024

Grow inner loop when possible. (NPY_ITER_GROWINNER)

DELAY_BUFALLOC = 2048

Delay buffer allocation until Reset. (NPY_ITER_DELAY_BUFALLOC)

DONT_NEGATE_STRIDES = 4096

Don't negate strides for axes iterated in reverse. (NPY_ITER_DONT_NEGATE_STRIDES)

COPY_IF_OVERLAP = 8192

Copy operands if they overlap in memory. (NPY_ITER_COPY_IF_OVERLAP)

OVERLAP_ASSUME_ELEMENTWISE = 1073741824

Assume 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.