Struct ComparisonScalarKey
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
LhsTypeNPTypeCodeRhsTypeNPTypeCodeOpComparisonOp
Properties
ComparisonType
Get the common type for comparison (promote both operands to this type).
public NPTypeCode ComparisonType { get; }
Property Value
LhsType
public NPTypeCode LhsType { get; init; }
Property Value
Op
public ComparisonOp Op { get; init; }
Property Value
RhsType
public NPTypeCode RhsType { get; init; }
Property Value
Methods
ToString()
Returns the fully qualified type name of this instance.
public override string ToString()
Returns
- string
The fully qualified type name.