Delegate TakeFlatKernel
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
srcbyte*- 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.
indicesvoid*- 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.
countlong- 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.
maxItemlong- 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.
dstbyte*- 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.