Table of Contents

Struct BinaryScalarKey

Namespace
NumSharp.Backends.Kernels
Assembly
NumSharp.dll

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

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

Constructors

BinaryScalarKey(NPTypeCode, NPTypeCode, NPTypeCode, BinaryOp)

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

public BinaryScalarKey(NPTypeCode LhsType, NPTypeCode RhsType, NPTypeCode ResultType, BinaryOp Op)

Parameters

LhsType NPTypeCode
RhsType NPTypeCode
ResultType NPTypeCode
Op BinaryOp

Properties

IsSameType

public bool IsSameType { get; }

Property Value

bool

LhsType

public NPTypeCode LhsType { get; init; }

Property Value

NPTypeCode

Op

public BinaryOp Op { get; init; }

Property Value

BinaryOp

ResultType

public NPTypeCode ResultType { get; init; }

Property Value

NPTypeCode

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.