Table of Contents

Class ReductionTypeExtensions

Namespace
NumSharp.Backends.Kernels
Assembly
NumSharp.dll

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

type NPTypeCode

Returns

object

GetMaxValue(NPTypeCode)

Get the maximum value for a type (for Min reduction identity).

public static object GetMaxValue(this NPTypeCode type)

Parameters

type NPTypeCode

Returns

object

GetMinValue(NPTypeCode)

Get the minimum value for a type (for Max reduction identity).

public static object GetMinValue(this NPTypeCode type)

Parameters

type NPTypeCode

Returns

object

GetOneValue(NPTypeCode)

Get the multiplicative identity (1) for a type.

public static object GetOneValue(this NPTypeCode type)

Parameters

type NPTypeCode

Returns

object