Table of Contents

Enum NDIterOpFlags

Namespace
NumSharp.Backends.Iteration
Assembly
NumSharp.dll

Per-operand flags during iteration. Matches NumPy's NPY_OP_ITFLAG_* constants.

[Flags]
public enum NDIterOpFlags : ushort
Extension Methods

Fields

None = 0
WRITE = 1

Operand will be written to.

READ = 2

Operand will be read from.

READWRITE = WRITE | READ

Operand is read-write.

CAST = 4

Operand needs type conversion/byte swapping/alignment.

BUFNEVER = 8

Operand never needs buffering.

BUF_SINGLESTRIDE = 16

Buffer filling can use single stride.

REDUCE = 32

Operand is being reduced.

VIRTUAL = 64

Operand is virtual (no backing array).

WRITEMASKED = 128

Operand requires masking when copying buffer to array.

BUF_REUSABLE = 256

Buffer is fully filled and ready for reuse.

FORCECOPY = 512

Operand must be copied.

HAS_WRITEBACK = 1024

Operand has temporary data, write back at dealloc.

CONTIG = 2048

User requested contiguous operand.