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, long* lhsStrides, long* rhsStrides, long* shape, int ndim, long 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 long*

Left operand strides (element units)

rhsStrides long*

Right operand strides (element units)

shape long*

Output shape dimensions

ndim int

Number of dimensions

totalSize long

Total number of output elements

Extension Methods