Table of Contents

Class ReductionOpExtensions

Namespace
NumSharp.Backends.Kernels
Assembly
NumSharp.dll

Extension methods for ReductionOp.

public static class ReductionOpExtensions
Inheritance
ReductionOpExtensions
Inherited Members

Methods

GetIdentity(ReductionOp, NPTypeCode)

Get the identity element for this reduction operation.

public static object GetIdentity(this ReductionOp op, NPTypeCode type)

Parameters

op ReductionOp
type NPTypeCode

Returns

object

HasSimdSupport(ReductionOp)

Check if this reduction has SIMD horizontal reduction support.

public static bool HasSimdSupport(this ReductionOp op)

Parameters

op ReductionOp

Returns

bool

IsOrderDependent(ReductionOp)

Check if this reduction is order-dependent (cannot be parallelized trivially).

public static bool IsOrderDependent(this ReductionOp op)

Parameters

op ReductionOp

Returns

bool

ReturnsBool(ReductionOp)

Check if this reduction returns a boolean.

public static bool ReturnsBool(this ReductionOp op)

Parameters

op ReductionOp

Returns

bool

ReturnsIndex(ReductionOp)

Check if this reduction returns an index rather than a value.

public static bool ReturnsIndex(this ReductionOp op)

Parameters

op ReductionOp

Returns

bool

SupportsEarlyExit(ReductionOp)

Check if this reduction supports early-exit optimization.

public static bool SupportsEarlyExit(this ReductionOp op)

Parameters

op ReductionOp

Returns

bool