Struct UnaryKernelKey
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
InputTypeNPTypeCodeOutputTypeNPTypeCodeOpUnaryOpIsContiguousbool
Properties
InputType
public NPTypeCode InputType { get; init; }
Property Value
IsContiguous
public bool IsContiguous { get; init; }
Property Value
IsSameType
Returns true if input and output types are the same (no conversion needed).
public bool IsSameType { get; }
Property Value
Op
public UnaryOp Op { get; init; }
Property Value
OutputType
public NPTypeCode OutputType { 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.