Table of Contents

Delegate TakeFlatKernel

Namespace
NumSharp.Backends.Kernels
Assembly
NumSharp.dll

Lean 1-D gather: dst[j] = src[indices[j]] over count elements of one compile-time width, RAISE semantics (a negative index is normalised once, then bounds-checked). indices addresses int32 or int64 values, per the kernel's generation. Returns count, or the first failing position.

public delegate long TakeFlatKernel(byte* src, void* indices, long count, long maxItem, byte* dst)

Parameters

src byte*
Lean 1-D gather: dst[j] = src[indices[j]] over count elements of one compile-time width, RAISE semantics (a negative index is normalised once, then bounds-checked). indices addresses int32 or int64 values, per the kernel's generation. Returns count, or the first failing position.
indices void*
Lean 1-D gather: dst[j] = src[indices[j]] over count elements of one compile-time width, RAISE semantics (a negative index is normalised once, then bounds-checked). indices addresses int32 or int64 values, per the kernel's generation. Returns count, or the first failing position.
count long
Lean 1-D gather: dst[j] = src[indices[j]] over count elements of one compile-time width, RAISE semantics (a negative index is normalised once, then bounds-checked). indices addresses int32 or int64 values, per the kernel's generation. Returns count, or the first failing position.
maxItem long
Lean 1-D gather: dst[j] = src[indices[j]] over count elements of one compile-time width, RAISE semantics (a negative index is normalised once, then bounds-checked). indices addresses int32 or int64 values, per the kernel's generation. Returns count, or the first failing position.
dst byte*
Lean 1-D gather: dst[j] = src[indices[j]] over count elements of one compile-time width, RAISE semantics (a negative index is normalised once, then bounds-checked). indices addresses int32 or int64 values, per the kernel's generation. Returns count, or the first failing position.

Returns

long
Lean 1-D gather: dst[j] = src[indices[j]] over count elements of one compile-time width, RAISE semantics (a negative index is normalised once, then bounds-checked). indices addresses int32 or int64 values, per the kernel's generation. Returns count, or the first failing position.