ILNumerics Ultimate VSExtensionMethodsnanargmin Method (ConcreteArraySByte, ArraySByte, InArraySByte, OutArraySByte, RetArraySByte, StorageSByte, NullableInt32, OutArraySByte)ILNumerics Ultimate VS Documentation
ILNumerics - Technical Application Development
[numpy API] Computes the indices of minimum elements along the specified dimension of A, ignoring 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> nanargmin(
	this ConcreteArray<sbyte, Array<sbyte>, InArray<sbyte>, OutArray<sbyte>, RetArray<sbyte>, Storage<sbyte>> A,
	Nullable<int> axis = null,
	OutArray<sbyte> values = null
)

Parameters

A
Type: ILNumerics.Core.ArraysConcreteArraySByte, ArraySByte, InArraySByte, OutArraySByte, RetArraySByte, StorageSByte
Array to compute the indices for. This is not altered.
axis (Optional)
Type: SystemNullableInt32
[Optional] The working dimension. Default: (null) finds the minimum of the whole array.
values (Optional)
Type: ILNumericsOutArraySByte
[Optional] Returns the minimum values found from A also. Default: (null) minimum 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 ConcreteArraySByte, ArraySByte, InArraySByte, OutArraySByte, RetArraySByte, StorageSByte. 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.

argmin(ConcreteArraySByte, ArraySByte, InArraySByte, OutArraySByte, RetArraySByte, StorageSByte, NullableInt32, OutArraySByte) 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, nanargmin(ConcreteArraySByte, ArraySByte, InArraySByte, OutArraySByte, RetArraySByte, StorageSByte, NullableInt32, OutArraySByte), ignores NaN values and gives the minimum among the non-NaN values, if possible. This corresponds to the behavior of ILNumerics version 4, Matlab(R) a.s.f.

See min(BaseArraySByte, OutArrayInt64, Int32, Boolean) for details.

[ILNumerics numpy Module]

See Also

Reference

MathInternal.min(BaseArraySByte, OutArrayInt64, Int32, Boolean)