Table of Contents

Delegate MixedTypeKernel

Namespace
NumSharp.Backends.Kernels
Assembly
NumSharp.dll

Mixed-type binary operation kernel signature using void pointers. Handles operations where LHS, RHS, and result may have different types. Type conversion is handled internally by the generated IL.

public delegate void MixedTypeKernel(void* lhs, void* rhs, void* result, int* lhsStrides, int* rhsStrides, int* shape, int ndim, int totalSize)

Parameters

lhs void*

Pointer to left operand data (typed as LhsType)

rhs void*

Pointer to right operand data (typed as RhsType)

result void*

Pointer to output data (typed as ResultType)

lhsStrides int*

Left operand strides (element units)

rhsStrides int*

Right operand strides (element units)

shape int*

Output shape dimensions

ndim int

Number of dimensions

totalSize int

Total number of output elements

Extension Methods