Delegate BinaryKernel<T>
Unified binary operation kernel signature. All binary operations (Add, Sub, Mul, Div, Mod) use this interface. The kernel handles pattern detection and dispatch internally.
public delegate void BinaryKernel<T>(T* lhs, T* rhs, T* result, int* lhsStrides, int* rhsStrides, int* shape, int ndim, int totalSize) where T : unmanaged
Parameters
lhsT*Pointer to left operand data
rhsT*Pointer to right operand data
resultT*Pointer to output data
lhsStridesint*Left operand strides (element units, not bytes)
rhsStridesint*Right operand strides (element units, not bytes)
shapeint*Output shape dimensions
ndimintNumber of dimensions
totalSizeintTotal number of output elements
Type Parameters
TElement type (byte, short, int, long, float, double, etc.)
- Extension Methods