Class ReductionOpExtensions
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
opReductionOptypeNPTypeCode
Returns
HasSimdSupport(ReductionOp)
Check if this reduction has SIMD horizontal reduction support.
public static bool HasSimdSupport(this ReductionOp op)
Parameters
opReductionOp
Returns
IsOrderDependent(ReductionOp)
Check if this reduction is order-dependent (cannot be parallelized trivially).
public static bool IsOrderDependent(this ReductionOp op)
Parameters
opReductionOp
Returns
ReturnsBool(ReductionOp)
Check if this reduction returns a boolean.
public static bool ReturnsBool(this ReductionOp op)
Parameters
opReductionOp
Returns
ReturnsIndex(ReductionOp)
Check if this reduction returns an index rather than a value.
public static bool ReturnsIndex(this ReductionOp op)
Parameters
opReductionOp
Returns
SupportsEarlyExit(ReductionOp)
Check if this reduction supports early-exit optimization.
public static bool SupportsEarlyExit(this ReductionOp op)
Parameters
opReductionOp