Table of Contents

Delegate MaskGatherKernel

Namespace
NumSharp.Backends.Kernels
Assembly
NumSharp.dll

Copies, in order, every slab of src whose mask byte is non-zero into consecutive slabs of dst; returns the number of slabs written (see the file header for the contract).

public delegate long MaskGatherKernel(byte* src, byte* mask, long count, long slabBytes, byte* dst)

Parameters

src byte*

The first slab of the source (C-contiguous slabs).

mask byte*

The mask, one byte per slab.

count long

The number of mask bytes (= source slabs).

slabBytes long

The slab size in bytes; read only by a kind-0 kernel.

dst byte*

The destination, room for one slab per non-zero mask byte.

Returns

long
Copies, in order, every slab of src whose mask byte is non-zero into consecutive slabs of dst; returns the number of slabs written (see the file header for the contract).