Table of Contents

Delegate MaskedAssignKernel

Namespace
NumSharp.Backends.Kernels
Assembly
NumSharp.dll

Where-masked bit copy of one element width over prepared, broadcast operands (np.copyto's element loop): dst[i] = src[i] wherever mask[i] != 0.

public delegate void MaskedAssignKernel(byte* src, byte* dst, byte* mask, long* srcStrides, long* dstStrides, long* maskStrides, long* shape, int ndim)

Parameters

src byte*

The source's first element (already cast to the destination's dtype).

dst byte*

The destination's first element.

mask byte*

The mask's first byte (a bool array; any nonzero byte is true).

srcStrides long*

Source BYTE strides, one per axis, C order (the last axis is the inner run); 0 broadcasts.

dstStrides long*

Destination BYTE strides, one per axis.

maskStrides long*

Mask BYTE strides, one per axis; 0 broadcasts.

shape long*

The extent of each axis; every extent must be at least 1.

ndim int

The number of axes, at least 1 (a 0-d assignment passes one axis of extent 1).