Class ReductionTypeExtensions
Extension methods for NPTypeCode related to reductions.
public static class ReductionTypeExtensions
- Inheritance
-
ReductionTypeExtensions
- Inherited Members
Methods
GetDefaultValue(NPTypeCode)
Get the default value (additive identity) for a type.
public static object GetDefaultValue(this NPTypeCode type)
Parameters
typeNPTypeCode
Returns
GetMaxValue(NPTypeCode)
Get the maximum value for a type (for Min reduction identity).
public static object GetMaxValue(this NPTypeCode type)
Parameters
typeNPTypeCode
Returns
GetMinValue(NPTypeCode)
Get the minimum value for a type (for Max reduction identity).
public static object GetMinValue(this NPTypeCode type)
Parameters
typeNPTypeCode
Returns
GetOneValue(NPTypeCode)
Get the multiplicative identity (1) for a type.
public static object GetOneValue(this NPTypeCode type)
Parameters
typeNPTypeCode