Table of Contents

Delegate WhereBytesStepKernel

Namespace
NumSharp.Backends.Kernels
Assembly
NumSharp.dll

An IL-emitted element select for opaque elements of a fixed byte width whose INPUTS each advance by their own byte step: result[i] = cond[i·condStep] ? x[i·xStep] : y[i·yStep] over count elements written contiguously. A step of 0 broadcasts a one-element operand; a negative step walks a reversed view.

public delegate void WhereBytesStepKernel(bool* cond, long condStep, byte* x, long xStep, byte* y, long yStep, byte* result, long count)

Parameters

cond bool*

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

condStep long

The byte step between condition elements (0, 1, or a 1-D view's stride).

x byte*

The first value where the condition holds.

xStep long

The byte step between x elements (0, the width, or a 1-D view's stride).

y byte*

The first value elsewhere.

yStep long

The byte step between y elements.

result byte*

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

count long

The number of elements.