ILNumerics Ultimate VSExtensionMethodsargmax Method (ConcreteArrayUInt32, ArrayUInt32, InArrayUInt32, OutArrayUInt32, RetArrayUInt32, StorageUInt32, NullableInt32, OutArrayUInt32)ILNumerics Ultimate VS Documentation
ILNumerics - Technical Application Development
[numpy API] Computes indices of maximum elements along the specified dimension of A, recognizing NaNs.

[ILNumerics numpy Module]

Namespace: ILNumerics
Assembly: ILNumerics.numpy (in ILNumerics.numpy.dll) Version: 5.3.0.0 (5.3.7131.2749)
Syntax

public static RetArray<long> argmax(
	this ConcreteArray<uint, Array<uint>, InArray<uint>, OutArray<uint>, RetArray<uint>, Storage<uint>> A,
	Nullable<int> axis = null,
	OutArray<uint> values = null
)

Parameters

A
Type: ILNumerics.Core.ArraysConcreteArrayUInt32, ArrayUInt32, InArrayUInt32, OutArrayUInt32, RetArrayUInt32, StorageUInt32
Array to compute the indices for. This is not altered.
axis (Optional)
Type: SystemNullableInt32
[Optional] The working dimension. Default: (null) finds the maximum of the whole array.
values (Optional)
Type: ILNumericsOutArrayUInt32
[Optional] Returns the maximum values found from A also. Default: (null) maximum values are not returned.

Return Value

Type: RetArrayInt64

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ConcreteArrayUInt32, ArrayUInt32, InArrayUInt32, OutArrayUInt32, RetArrayUInt32, StorageUInt32. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Remarks

Negative dimension specifier 'axis' will be shifted into the range of valid dimension indices. -1 corresponds to the last dimension.

argmax(ConcreteArrayUInt32, ArrayUInt32, InArrayUInt32, OutArrayUInt32, RetArrayUInt32, StorageUInt32, NullableInt32, OutArrayUInt32) prioritizes NaN values over non-NaN values. I.e.: if any of the elements is NaN the respective result value will be NaN also. Conversely, nanargmax(ConcreteArrayUInt32, ArrayUInt32, InArrayUInt32, OutArrayUInt32, RetArrayUInt32, StorageUInt32, NullableInt32, OutArrayUInt32), ignores NaN values and gives the maximum among the non-NaN values, if possible. This corresponds to the behavior of ILNumerics version 4, Matlab(R) a.s.f.

[ILNumerics numpy Module]

See Also

Reference

MathInternal.max(BaseArrayUInt32, OutArrayInt64, Int32, Boolean)
MathInternal.maxall(ConcreteArrayUInt32, ArrayUInt32, InArrayUInt32, OutArrayUInt32, RetArrayUInt32, StorageUInt32, OutArrayInt64, StorageOrders, Boolean)
MathInternal.minall(ConcreteArrayUInt32, ArrayUInt32, InArrayUInt32, OutArrayUInt32, RetArrayUInt32, StorageUInt32, OutArrayInt64, StorageOrders, Boolean)
ExtensionMethodsnanargmax(ConcreteArrayUInt32, ArrayUInt32, InArrayUInt32, OutArrayUInt32, RetArrayUInt32, StorageUInt32, NullableInt32, OutArrayUInt32)
ExtensionMethodsargmin(ConcreteArrayUInt32, ArrayUInt32, InArrayUInt32, OutArrayUInt32, RetArrayUInt32, StorageUInt32, NullableInt32, OutArrayUInt32)