Delegate TypedElementReductionKernel<TResult>
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
inputvoid*- Delegate for typed element-wise reduction kernels. Returns the reduced value directly without boxing.
strideslong*- Delegate for typed element-wise reduction kernels. Returns the reduced value directly without boxing.
shapelong*- Delegate for typed element-wise reduction kernels. Returns the reduced value directly without boxing.
ndimint- Delegate for typed element-wise reduction kernels. Returns the reduced value directly without boxing.
totalSizelong- 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
TResultAccumulator/result type
- Extension Methods