Delegate PutAlongAxisValidateKernel
IL-emitted index-validation pass for np.put_along_axis. Walks the iteration
odometer, applies the advanced-index negative wrap, and bounds-checks each int64
index against the axis length — WITHOUT writing anything, so a caller can guarantee
NumPy's all-or-nothing assignment (a single out-of-range index leaves the destination
untouched). Dtype-agnostic (indices are always int64), hence a single cached instance.
public delegate long PutAlongAxisValidateKernel(long* idxBase, long* idxStrides, long axisLen, long* shape, long ndim, long totalSize, long* outBadIdx)
Parameters
idxBaselong*- IL-emitted index-validation pass for np.put_along_axis. Walks the iteration odometer, applies the advanced-index negative wrap, and bounds-checks each int64 index against the axis length — WITHOUT writing anything, so a caller can guarantee NumPy's all-or-nothing assignment (a single out-of-range index leaves the destination untouched). Dtype-agnostic (indices are always int64), hence a single cached instance.
idxStrideslong*- IL-emitted index-validation pass for np.put_along_axis. Walks the iteration odometer, applies the advanced-index negative wrap, and bounds-checks each int64 index against the axis length — WITHOUT writing anything, so a caller can guarantee NumPy's all-or-nothing assignment (a single out-of-range index leaves the destination untouched). Dtype-agnostic (indices are always int64), hence a single cached instance.
axisLenlong- IL-emitted index-validation pass for np.put_along_axis. Walks the iteration odometer, applies the advanced-index negative wrap, and bounds-checks each int64 index against the axis length — WITHOUT writing anything, so a caller can guarantee NumPy's all-or-nothing assignment (a single out-of-range index leaves the destination untouched). Dtype-agnostic (indices are always int64), hence a single cached instance.
shapelong*- IL-emitted index-validation pass for np.put_along_axis. Walks the iteration odometer, applies the advanced-index negative wrap, and bounds-checks each int64 index against the axis length — WITHOUT writing anything, so a caller can guarantee NumPy's all-or-nothing assignment (a single out-of-range index leaves the destination untouched). Dtype-agnostic (indices are always int64), hence a single cached instance.
ndimlong- IL-emitted index-validation pass for np.put_along_axis. Walks the iteration odometer, applies the advanced-index negative wrap, and bounds-checks each int64 index against the axis length — WITHOUT writing anything, so a caller can guarantee NumPy's all-or-nothing assignment (a single out-of-range index leaves the destination untouched). Dtype-agnostic (indices are always int64), hence a single cached instance.
totalSizelong- IL-emitted index-validation pass for np.put_along_axis. Walks the iteration odometer, applies the advanced-index negative wrap, and bounds-checks each int64 index against the axis length — WITHOUT writing anything, so a caller can guarantee NumPy's all-or-nothing assignment (a single out-of-range index leaves the destination untouched). Dtype-agnostic (indices are always int64), hence a single cached instance.
outBadIdxlong*- IL-emitted index-validation pass for np.put_along_axis. Walks the iteration odometer, applies the advanced-index negative wrap, and bounds-checks each int64 index against the axis length — WITHOUT writing anything, so a caller can guarantee NumPy's all-or-nothing assignment (a single out-of-range index leaves the destination untouched). Dtype-agnostic (indices are always int64), hence a single cached instance.
Returns
- long
totalSizewhen every index is in range; otherwise the flat position of the first out-of-bounds element, with*outBadIdxset to that index's original (pre-wrap) value for the caller's diagnostic.