Table of Contents

Delegate ChooseStridedKernel

Namespace
NumSharp.Backends.Kernels
Assembly
NumSharp.dll

Strided np.choose kernel: an odometer over the C-contiguous result; the index and the selected choice are read through their own per-dimension BYTE strides (0 = broadcast).

public delegate long ChooseStridedKernel(byte** choiceBases, long* choiceStrides, byte* idxBase, long* idxStrides, byte* dstBase, long* shape, long ndim, long totalSize, long nChoices)

Parameters

choiceBases byte**
Strided np.choose kernel: an odometer over the C-contiguous result; the index and the selected choice are read through their own per-dimension BYTE strides (0 = broadcast).
choiceStrides long*
Strided np.choose kernel: an odometer over the C-contiguous result; the index and the selected choice are read through their own per-dimension BYTE strides (0 = broadcast).
idxBase byte*
Strided np.choose kernel: an odometer over the C-contiguous result; the index and the selected choice are read through their own per-dimension BYTE strides (0 = broadcast).
idxStrides long*
Strided np.choose kernel: an odometer over the C-contiguous result; the index and the selected choice are read through their own per-dimension BYTE strides (0 = broadcast).
dstBase byte*
Strided np.choose kernel: an odometer over the C-contiguous result; the index and the selected choice are read through their own per-dimension BYTE strides (0 = broadcast).
shape long*
Strided np.choose kernel: an odometer over the C-contiguous result; the index and the selected choice are read through their own per-dimension BYTE strides (0 = broadcast).
ndim long
Strided np.choose kernel: an odometer over the C-contiguous result; the index and the selected choice are read through their own per-dimension BYTE strides (0 = broadcast).
totalSize long
Strided np.choose kernel: an odometer over the C-contiguous result; the index and the selected choice are read through their own per-dimension BYTE strides (0 = broadcast).
nChoices long
Strided np.choose kernel: an odometer over the C-contiguous result; the index and the selected choice are read through their own per-dimension BYTE strides (0 = broadcast).

Returns

long

totalSize on success, or the flat position of the first out-of-bounds index (raise mode only).