Table of Contents

Delegate ComparisonKernel

Namespace
NumSharp.Backends.Kernels
Assembly
NumSharp.dll

Comparison operation kernel signature using void pointers. LHS and RHS may have different types, but result is always bool. Type conversion is handled internally by the generated IL.

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

Parameters

lhs void*

Pointer to left operand data

rhs void*

Pointer to right operand data

result bool*

Pointer to output data (always bool*)

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