Struct AxisReductionKernelKey
Cache key for axis reduction kernels. Reduces along a specific axis, producing an array with one fewer dimension.
public readonly record struct AxisReductionKernelKey : IEquatable<AxisReductionKernelKey>
- Implements
- Inherited Members
- Extension Methods
Remarks
These kernels handle the outer loop over non-reduced dimensions and inner reduction along the specified axis.
Constructors
AxisReductionKernelKey(NPTypeCode, NPTypeCode, ReductionOp, bool)
Cache key for axis reduction kernels. Reduces along a specific axis, producing an array with one fewer dimension.
public AxisReductionKernelKey(NPTypeCode InputType, NPTypeCode AccumulatorType, ReductionOp Op, bool InnerAxisContiguous)
Parameters
InputTypeNPTypeCodeAccumulatorTypeNPTypeCodeOpReductionOpInnerAxisContiguousbool
Remarks
These kernels handle the outer loop over non-reduced dimensions and inner reduction along the specified axis.
Properties
AccumulatorType
public NPTypeCode AccumulatorType { get; init; }
Property Value
InnerAxisContiguous
public bool InnerAxisContiguous { get; init; }
Property Value
InputType
public NPTypeCode InputType { get; init; }
Property Value
IsSameType
Returns true if input and accumulator types are the same.
public bool IsSameType { get; }
Property Value
Op
public ReductionOp Op { get; init; }
Property Value
ResultType
Result type depends on operation.
public NPTypeCode ResultType { get; }
Property Value
Methods
ToString()
Returns the fully qualified type name of this instance.
public override string ToString()
Returns
- string
The fully qualified type name.