Table of Contents

Delegate TypedElementReductionKernel<TResult>

Namespace
NumSharp.Backends.Kernels
Assembly
NumSharp.dll

Delegate for typed element-wise reduction kernels. Returns the reduced value directly without boxing.

public delegate TResult TypedElementReductionKernel<TResult>(void* input, long* strides, long* shape, int ndim, long totalSize) where TResult : unmanaged

Parameters

input void*
Delegate for typed element-wise reduction kernels. Returns the reduced value directly without boxing.
strides long*
Delegate for typed element-wise reduction kernels. Returns the reduced value directly without boxing.
shape long*
Delegate for typed element-wise reduction kernels. Returns the reduced value directly without boxing.
ndim int
Delegate for typed element-wise reduction kernels. Returns the reduced value directly without boxing.
totalSize long
Delegate for typed element-wise reduction kernels. Returns the reduced value directly without boxing.

Returns

TResult
Delegate for typed element-wise reduction kernels. Returns the reduced value directly without boxing.

Type Parameters

TResult

Accumulator/result type

Extension Methods