Delegate ComparisonKernel
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, long* lhsStrides, long* rhsStrides, long* shape, int ndim, long totalSize)
Parameters
lhsvoid*Pointer to left operand data
rhsvoid*Pointer to right operand data
resultbool*Pointer to output data (always bool*)
lhsStrideslong*Left operand strides (element units)
rhsStrideslong*Right operand strides (element units)
shapelong*Output shape dimensions
ndimintNumber of dimensions
totalSizelongTotal number of output elements
- Extension Methods