Delegate RavelMultiIndexKernel
IL-emitted multi-coord→flat-index folder for np.ravel_multi_index.
Caller pre-casts each coord array to contig int64 and computes
ravelStrides (C or F order baked into the strides);
the kernel reads coords[d][i] linearly, applies the
per-axis modes clipping/wrapping, and writes the
summed flat index into outIndices.
public delegate long RavelMultiIndexKernel(long** coords, long count, long* dims, long* ravelStrides, int* modes, long ndim, long* outIndices)
Parameters
coordslong**- IL-emitted multi-coord→flat-index folder for np.ravel_multi_index. Caller pre-casts each coord array to contig int64 and computes ravelStrides (C or F order baked into the strides); the kernel reads coords[d][i] linearly, applies the per-axis modes clipping/wrapping, and writes the summed flat index into outIndices.
countlong- IL-emitted multi-coord→flat-index folder for np.ravel_multi_index. Caller pre-casts each coord array to contig int64 and computes ravelStrides (C or F order baked into the strides); the kernel reads coords[d][i] linearly, applies the per-axis modes clipping/wrapping, and writes the summed flat index into outIndices.
dimslong*- IL-emitted multi-coord→flat-index folder for np.ravel_multi_index. Caller pre-casts each coord array to contig int64 and computes ravelStrides (C or F order baked into the strides); the kernel reads coords[d][i] linearly, applies the per-axis modes clipping/wrapping, and writes the summed flat index into outIndices.
ravelStrideslong*- IL-emitted multi-coord→flat-index folder for np.ravel_multi_index. Caller pre-casts each coord array to contig int64 and computes ravelStrides (C or F order baked into the strides); the kernel reads coords[d][i] linearly, applies the per-axis modes clipping/wrapping, and writes the summed flat index into outIndices.
modesint*- IL-emitted multi-coord→flat-index folder for np.ravel_multi_index. Caller pre-casts each coord array to contig int64 and computes ravelStrides (C or F order baked into the strides); the kernel reads coords[d][i] linearly, applies the per-axis modes clipping/wrapping, and writes the summed flat index into outIndices.
ndimlong- IL-emitted multi-coord→flat-index folder for np.ravel_multi_index. Caller pre-casts each coord array to contig int64 and computes ravelStrides (C or F order baked into the strides); the kernel reads coords[d][i] linearly, applies the per-axis modes clipping/wrapping, and writes the summed flat index into outIndices.
outIndiceslong*- IL-emitted multi-coord→flat-index folder for np.ravel_multi_index. Caller pre-casts each coord array to contig int64 and computes ravelStrides (C or F order baked into the strides); the kernel reads coords[d][i] linearly, applies the per-axis modes clipping/wrapping, and writes the summed flat index into outIndices.
Returns
- long
counton success. On failure (mode=raise + OOB coord), the row index of the first offending row.
- Extension Methods