Table of Contents

Struct UnaryKernelKey

Namespace
NumSharp.Backends.Kernels
Assembly
NumSharp.dll

Cache key for unary operation kernels. Identifies a unique kernel by input type, output type, operation, and whether contiguous.

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

Constructors

UnaryKernelKey(NPTypeCode, NPTypeCode, UnaryOp, bool)

Cache key for unary operation kernels. Identifies a unique kernel by input type, output type, operation, and whether contiguous.

public UnaryKernelKey(NPTypeCode InputType, NPTypeCode OutputType, UnaryOp Op, bool IsContiguous)

Parameters

InputType NPTypeCode
OutputType NPTypeCode
Op UnaryOp
IsContiguous bool

Properties

InputType

public NPTypeCode InputType { get; init; }

Property Value

NPTypeCode

IsContiguous

public bool IsContiguous { get; init; }

Property Value

bool

IsSameType

Returns true if input and output types are the same (no conversion needed).

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.