Table of Contents

Delegate PutKernel

Namespace
NumSharp.Backends.Kernels
Assembly
NumSharp.dll

IL-emitted scatter kernel for np.put. Writes dst[apply_mode(indices[i])] = values[i % valuesCount] for each i in [0, indicesCount).

public delegate long PutKernel(byte* dst, long* indices, long indicesCount, byte* values, long valuesCount, long maxItem, long elemBytes, int mode)

Parameters

dst byte*
IL-emitted scatter kernel for np.put. Writes dst[apply_mode(indices[i])] = values[i % valuesCount] for each i in [0, indicesCount).
indices long*
IL-emitted scatter kernel for np.put. Writes dst[apply_mode(indices[i])] = values[i % valuesCount] for each i in [0, indicesCount).
indicesCount long
IL-emitted scatter kernel for np.put. Writes dst[apply_mode(indices[i])] = values[i % valuesCount] for each i in [0, indicesCount).
values byte*
IL-emitted scatter kernel for np.put. Writes dst[apply_mode(indices[i])] = values[i % valuesCount] for each i in [0, indicesCount).
valuesCount long
IL-emitted scatter kernel for np.put. Writes dst[apply_mode(indices[i])] = values[i % valuesCount] for each i in [0, indicesCount).
maxItem long
IL-emitted scatter kernel for np.put. Writes dst[apply_mode(indices[i])] = values[i % valuesCount] for each i in [0, indicesCount).
elemBytes long
IL-emitted scatter kernel for np.put. Writes dst[apply_mode(indices[i])] = values[i % valuesCount] for each i in [0, indicesCount).
mode int
IL-emitted scatter kernel for np.put. Writes dst[apply_mode(indices[i])] = values[i % valuesCount] for each i in [0, indicesCount).

Returns

long

indicesCount on success. On RAISE OOB the row index of the first failing entry; the caller reads indices[returned] for the diagnostic.

Extension Methods