ILNumerics Ultimate VS

ExtensionMethods.argmax Method (ConcreteArray<Int16, Array<Int16>, InArray<Int16>, OutArray<Int16>, RetArray<Int16>, Storage<Int16>>, Nullable<Int32>, OutArray<Int16>)

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.5.0.0 (5.5.7503.3146)
Syntax

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

Parameters

A
Type: ILNumerics.Core.Arrays.ConcreteArray<Int16, Array<Int16>, InArray<Int16>, OutArray<Int16>, RetArray<Int16>, Storage<Int16>>
Array to compute the indices for. This is not altered.
axis (Optional)
Type: System.Nullable<Int32>
[Optional] The working dimension. Default: (null) finds the maximum of the whole array.
values (Optional)
Type: ILNumerics.OutArray<Int16>
[Optional] Returns the maximum values found from A also. Default: (null) maximum values are not returned.

Return Value

Type: RetArray<Int64>

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ConcreteArray<Int16, Array<Int16>, InArray<Int16>, OutArray<Int16>, RetArray<Int16>, Storage<Int16>>. 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(ConcreteArray<Int16, Array<Int16> , InArray<Int16> , OutArray<Int16> , RetArray<Int16> , Storage<Int16> > , Nullable<Int32> , OutArray<Int16> ) 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(ConcreteArray<Int16, Array<Int16>, InArray<Int16>, OutArray<Int16>, RetArray<Int16>, Storage<Int16>>, Nullable<Int32>, OutArray<Int16>), 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(BaseArray<Int16>, OutArray<Int64>, Int32, Boolean)
MathInternal.maxall(ConcreteArray<Int16, Array<Int16>, InArray<Int16>, OutArray<Int16>, RetArray<Int16>, Storage<Int16>>, OutArray<Int64>, StorageOrders, Boolean)
MathInternal.minall(ConcreteArray<Int16, Array<Int16>, InArray<Int16>, OutArray<Int16>, RetArray<Int16>, Storage<Int16>>, OutArray<Int64>, StorageOrders, Boolean)
ExtensionMethods.nanargmax(ConcreteArray<Int16, Array<Int16>, InArray<Int16>, OutArray<Int16>, RetArray<Int16>, Storage<Int16>>, Nullable<Int32>, OutArray<Int16>)
ExtensionMethods.argmin(ConcreteArray<Int16, Array<Int16>, InArray<Int16>, OutArray<Int16>, RetArray<Int16>, Storage<Int16>>, Nullable<Int32>, OutArray<Int16>)