Table of Contents

Delegate PutFlatKernel

Namespace
NumSharp.Backends.Kernels
Assembly
NumSharp.dll

Lean 1-D scatter: dst[indices[j]] = values[j mod valuesCount] (a wrapping values cursor: valuesCount == 1 broadcasts a scalar, == count is a straight copy). RAISE semantics as TakeFlatKernel; returns count or the first failing position — elements before it HAVE been written.

public delegate long PutFlatKernel(byte* dst, void* indices, long count, byte* values, long valuesCount, long maxItem)

Parameters

dst byte*
Lean 1-D scatter: dst[indices[j]] = values[j mod valuesCount] (a wrapping values cursor: valuesCount == 1 broadcasts a scalar, == count is a straight copy). RAISE semantics as ; returns count or the first failing position — elements before it HAVE been written.
indices void*
Lean 1-D scatter: dst[indices[j]] = values[j mod valuesCount] (a wrapping values cursor: valuesCount == 1 broadcasts a scalar, == count is a straight copy). RAISE semantics as ; returns count or the first failing position — elements before it HAVE been written.
count long
Lean 1-D scatter: dst[indices[j]] = values[j mod valuesCount] (a wrapping values cursor: valuesCount == 1 broadcasts a scalar, == count is a straight copy). RAISE semantics as ; returns count or the first failing position — elements before it HAVE been written.
values byte*
Lean 1-D scatter: dst[indices[j]] = values[j mod valuesCount] (a wrapping values cursor: valuesCount == 1 broadcasts a scalar, == count is a straight copy). RAISE semantics as ; returns count or the first failing position — elements before it HAVE been written.
valuesCount long
Lean 1-D scatter: dst[indices[j]] = values[j mod valuesCount] (a wrapping values cursor: valuesCount == 1 broadcasts a scalar, == count is a straight copy). RAISE semantics as ; returns count or the first failing position — elements before it HAVE been written.
maxItem long
Lean 1-D scatter: dst[indices[j]] = values[j mod valuesCount] (a wrapping values cursor: valuesCount == 1 broadcasts a scalar, == count is a straight copy). RAISE semantics as ; returns count or the first failing position — elements before it HAVE been written.

Returns

long
Lean 1-D scatter: dst[indices[j]] = values[j mod valuesCount] (a wrapping values cursor: valuesCount == 1 broadcasts a scalar, == count is a straight copy). RAISE semantics as ; returns count or the first failing position — elements before it HAVE been written.