Delegate TypedElementReductionKernel<TResult>
Delegate for typed element-wise reduction kernels. Returns the reduced value directly without boxing.
public delegate TResult TypedElementReductionKernel<TResult>(void* input, int* strides, int* shape, int ndim, int totalSize) where TResult : unmanaged
Parameters
inputvoid*- Delegate for typed element-wise reduction kernels. Returns the reduced value directly without boxing.
stridesint*- Delegate for typed element-wise reduction kernels. Returns the reduced value directly without boxing.
shapeint*- 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.
totalSizeint- 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