Table of Contents

Class NDAxisIter

Namespace
NumSharp.Backends.Iteration
Assembly
NumSharp.dll
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

src UnmanagedStorage
dst UnmanagedStorage
axis int

Type Parameters

T
TKernel

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

src UnmanagedStorage

The reduced array (any layout).

dst UnmanagedStorage

The result: the source's dims with axis dropped (or kept with extent 1), any dense layout — each output is written through dst'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.

axis int

The reduced axis, already normalized.

Type Parameters

T

The source element type.

TKernel

The fold (NDAllKernel<T> or NDAnyKernel<T>).

Exceptions

ArgumentOutOfRangeException

axis is not an axis of src.

ReduceDouble<TKernel>(UnmanagedStorage, UnmanagedStorage, int, int)

public static void ReduceDouble<TKernel>(UnmanagedStorage src, UnmanagedStorage dst, int axis, int ddof) where TKernel : struct, INDAxisDoubleReductionKernel

Parameters

src UnmanagedStorage
dst UnmanagedStorage
axis int
ddof int

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

src UnmanagedStorage
dst UnmanagedStorage
axis int

Type Parameters

T
TKernel