Class NDAxisIter
public static class NDAxisIter
- Inheritance
-
NDAxisIter
- Inherited Members
Methods
ExecuteSameType<T, TKernel>(UnmanagedStorage, UnmanagedStorage, int)
public static void ExecuteSameType<T, TKernel>(UnmanagedStorage src, UnmanagedStorage dst, int axis) where T : unmanaged where TKernel : struct, INDAxisSameTypeKernel<T>
Parameters
srcUnmanagedStoragedstUnmanagedStorageaxisint
Type Parameters
TTKernel
ReduceBool<T, TKernel>(UnmanagedStorage, UnmanagedStorage, int)
The all / any reduction of src along axis into the bool array
dst: one output per position of the other axes, each the kernel's fold of that row.
public static void ReduceBool<T, TKernel>(UnmanagedStorage src, UnmanagedStorage dst, int axis) where T : unmanaged where TKernel : struct, INDBooleanReductionKernel<T>
Parameters
srcUnmanagedStorageThe reduced array (any layout).
dstUnmanagedStorageThe result: the source's dims with
axisdropped (or kept with extent 1), any dense layout — each output is written throughdst's own strides, so a result laid out in the input's memory order (NumPy's reduce allocation, plan api-parameter-parity X10) is filled in place.axisintThe reduced axis, already normalized.
Type Parameters
TThe source element type.
TKernelThe fold (NDAllKernel<T> or NDAnyKernel<T>).
Exceptions
- ArgumentOutOfRangeException
axisis not an axis ofsrc.
ReduceDouble<TKernel>(UnmanagedStorage, UnmanagedStorage, int, int)
public static void ReduceDouble<TKernel>(UnmanagedStorage src, UnmanagedStorage dst, int axis, int ddof) where TKernel : struct, INDAxisDoubleReductionKernel
Parameters
srcUnmanagedStoragedstUnmanagedStorageaxisintddofint
Type Parameters
TKernel
ReduceNumeric<T, TKernel>(UnmanagedStorage, UnmanagedStorage, int)
Execute a numeric reduction along an axis using the provided kernel. Used as fallback for non-contiguous, sliced, or broadcast arrays.
public static void ReduceNumeric<T, TKernel>(UnmanagedStorage src, UnmanagedStorage dst, int axis) where T : unmanaged where TKernel : struct, INDAxisNumericReductionKernel<T>
Parameters
srcUnmanagedStoragedstUnmanagedStorageaxisint
Type Parameters
TTKernel