Table of Contents

Struct UnaryScalarKey

Namespace
NumSharp.Backends.Kernels
Assembly
NumSharp.dll

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

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

Constructors

UnaryScalarKey(NPTypeCode, NPTypeCode, UnaryOp)

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

public UnaryScalarKey(NPTypeCode InputType, NPTypeCode OutputType, UnaryOp Op)

Parameters

InputType NPTypeCode
OutputType NPTypeCode
Op UnaryOp

Properties

InputType

public NPTypeCode InputType { get; init; }

Property Value

NPTypeCode

IsSameType

public bool IsSameType { get; }

Property Value

bool

Op

public UnaryOp Op { get; init; }

Property Value

UnaryOp

OutputType

public NPTypeCode OutputType { 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.