Table of Contents

Delegate PutAlongAxisScatterKernel

Namespace
NumSharp.Backends.Kernels
Assembly
NumSharp.dll

IL-emitted per-element scatter kernel for np.put_along_axis. Walks the iteration odometer, reads one value through the (broadcast) values strides and writes it into arr at the resolved axis position. Runs ONLY after PutAlongAxisValidateKernel has passed, so it applies the negative-index wrap but performs NO bounds check in the hot loop.

public delegate void PutAlongAxisScatterKernel(byte* arrBase, long* arrStrides, long axisStrideBytes, long axisLen, long* idxBase, long* idxStrides, byte* valBase, long* valStrides, long* shape, long ndim, long totalSize)

Parameters

arrBase byte*
IL-emitted per-element scatter kernel for np.put_along_axis. Walks the iteration odometer, reads one value through the (broadcast) values strides and writes it into arr at the resolved axis position. Runs ONLY after has passed, so it applies the negative-index wrap but performs NO bounds check in the hot loop.
arrStrides long*
IL-emitted per-element scatter kernel for np.put_along_axis. Walks the iteration odometer, reads one value through the (broadcast) values strides and writes it into arr at the resolved axis position. Runs ONLY after has passed, so it applies the negative-index wrap but performs NO bounds check in the hot loop.
axisStrideBytes long
IL-emitted per-element scatter kernel for np.put_along_axis. Walks the iteration odometer, reads one value through the (broadcast) values strides and writes it into arr at the resolved axis position. Runs ONLY after has passed, so it applies the negative-index wrap but performs NO bounds check in the hot loop.
axisLen long
IL-emitted per-element scatter kernel for np.put_along_axis. Walks the iteration odometer, reads one value through the (broadcast) values strides and writes it into arr at the resolved axis position. Runs ONLY after has passed, so it applies the negative-index wrap but performs NO bounds check in the hot loop.
idxBase long*
IL-emitted per-element scatter kernel for np.put_along_axis. Walks the iteration odometer, reads one value through the (broadcast) values strides and writes it into arr at the resolved axis position. Runs ONLY after has passed, so it applies the negative-index wrap but performs NO bounds check in the hot loop.
idxStrides long*
IL-emitted per-element scatter kernel for np.put_along_axis. Walks the iteration odometer, reads one value through the (broadcast) values strides and writes it into arr at the resolved axis position. Runs ONLY after has passed, so it applies the negative-index wrap but performs NO bounds check in the hot loop.
valBase byte*
IL-emitted per-element scatter kernel for np.put_along_axis. Walks the iteration odometer, reads one value through the (broadcast) values strides and writes it into arr at the resolved axis position. Runs ONLY after has passed, so it applies the negative-index wrap but performs NO bounds check in the hot loop.
valStrides long*
IL-emitted per-element scatter kernel for np.put_along_axis. Walks the iteration odometer, reads one value through the (broadcast) values strides and writes it into arr at the resolved axis position. Runs ONLY after has passed, so it applies the negative-index wrap but performs NO bounds check in the hot loop.
shape long*
IL-emitted per-element scatter kernel for np.put_along_axis. Walks the iteration odometer, reads one value through the (broadcast) values strides and writes it into arr at the resolved axis position. Runs ONLY after has passed, so it applies the negative-index wrap but performs NO bounds check in the hot loop.
ndim long
IL-emitted per-element scatter kernel for np.put_along_axis. Walks the iteration odometer, reads one value through the (broadcast) values strides and writes it into arr at the resolved axis position. Runs ONLY after has passed, so it applies the negative-index wrap but performs NO bounds check in the hot loop.
totalSize long
IL-emitted per-element scatter kernel for np.put_along_axis. Walks the iteration odometer, reads one value through the (broadcast) values strides and writes it into arr at the resolved axis position. Runs ONLY after has passed, so it applies the negative-index wrap but performs NO bounds check in the hot loop.