Table of Contents

Struct ComparisonScalarKey

Namespace
NumSharp.Backends.Kernels
Assembly
NumSharp.dll

Cache key for scalar comparison operations. Used for element-by-element comparisons in general/broadcast paths.

public readonly record struct ComparisonScalarKey : IEquatable<ComparisonScalarKey>
Implements
Inherited Members
Extension Methods

Constructors

ComparisonScalarKey(NPTypeCode, NPTypeCode, ComparisonOp)

Cache key for scalar comparison operations. Used for element-by-element comparisons in general/broadcast paths.

public ComparisonScalarKey(NPTypeCode LhsType, NPTypeCode RhsType, ComparisonOp Op)

Parameters

LhsType NPTypeCode
RhsType NPTypeCode
Op ComparisonOp

Properties

ComparisonType

Get the common type for comparison (promote both operands to this type).

public NPTypeCode ComparisonType { get; }

Property Value

NPTypeCode

LhsType

public NPTypeCode LhsType { get; init; }

Property Value

NPTypeCode

Op

public ComparisonOp Op { get; init; }

Property Value

ComparisonOp

RhsType

public NPTypeCode RhsType { get; init; }

Property Value

NPTypeCode

Methods

ToString()

Returns the fully qualified type name of this instance.

public override string ToString()

Returns

string

The fully qualified type name.