Table of Contents

Delegate WhereBytesKernel

Namespace
NumSharp.Backends.Kernels
Assembly
NumSharp.dll

An IL-emitted element select for opaque elements of a fixed byte width (the width is baked into the kernel): result[i] = cond[i] ? x[i] : y[i] over count contiguous elements.

public delegate void WhereBytesKernel(bool* cond, byte* x, byte* y, byte* result, long count)

Parameters

cond bool*

The condition, one byte per element (0 = false, anything else = true).

x byte*

The values where the condition holds.

y byte*

The values elsewhere.

result byte*

The destination (must not overlap x or y partially).

count long

The number of elements.