Table of Contents

Delegate UnaryKernel

Namespace
NumSharp.Backends.Kernels
Assembly
NumSharp.dll

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

input void*

Pointer to input data

output void*

Pointer to output data

strides int*

Input strides (element units, not bytes)

shape int*

Shape dimensions

ndim int

Number of dimensions

totalSize int

Total number of elements

Extension Methods