Class ReductionTypeExtensions
Extension methods for NPTypeCode related to reductions.
public static class ReductionTypeExtensions
- Inheritance
-
ReductionTypeExtensions
- Inherited Members
Methods
GetMaxValue(NPTypeCode)
Get the maximum value for a type (for Min reduction identity).
public static object GetMaxValue(this NPTypeCode type)
Parameters
typeNPTypeCode
Returns
Remarks
For float types, returns positive infinity (not MaxValue). This matches NumPy's behavior for reduction identity elements.
GetMinValue(NPTypeCode)
Get the minimum value for a type (for Max reduction identity).
public static object GetMinValue(this NPTypeCode type)
Parameters
typeNPTypeCode
Returns
Remarks
For float types, returns negative infinity (not MinValue). This matches NumPy's behavior for reduction identity elements.