Table of Contents

Struct AxisReductionKernelKey

Namespace
NumSharp.Backends.Kernels
Assembly
NumSharp.dll

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

InputType NPTypeCode
AccumulatorType NPTypeCode
Op ReductionOp
InnerAxisContiguous bool

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

NPTypeCode

InnerAxisContiguous

public bool InnerAxisContiguous { get; init; }

Property Value

bool

InputType

public NPTypeCode InputType { get; init; }

Property Value

NPTypeCode

IsSameType

Returns true if input and accumulator types are the same.

public bool IsSameType { get; }

Property Value

bool

Op

public ReductionOp Op { get; init; }

Property Value

ReductionOp

ResultType

Result type depends on operation.

public NPTypeCode ResultType { get; }

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.