Delegate UnaryKernel
Unary operation kernel signature using void pointers. Handles operations where input and output may have different types. Type conversion is handled internally by the generated IL.
public delegate void UnaryKernel(void* input, void* output, int* strides, int* shape, int ndim, int totalSize)
Parameters
inputvoid*Pointer to input data
outputvoid*Pointer to output data
stridesint*Input strides (element units, not bytes)
shapeint*Shape dimensions
ndimintNumber of dimensions
totalSizeintTotal number of elements
- Extension Methods