ILNumerics Ultimate VS

ExtensionMethods.argsort Method (ConcreteArray<UInt16, Array<UInt16>, InArray<UInt16>, OutArray<UInt16>, RetArray<UInt16>, Storage<UInt16>>, Int32, Boolean, OutArray<UInt16>)

ILNumerics Ultimate VS Documentation
ILNumerics - Technical Application Development
[numpy API] Computes the indices for elements of sorted A.

[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> argsort(
	this ConcreteArray<ushort, Array<ushort>, InArray<ushort>, OutArray<ushort>, RetArray<ushort>, Storage<ushort>> A,
	int axis = -1,
	bool descending = false,
	OutArray<ushort> sorted = null
)

Parameters

A
Type: ILNumerics.Core.Arrays.ConcreteArray<UInt16, Array<UInt16>, InArray<UInt16>, OutArray<UInt16>, RetArray<UInt16>, Storage<UInt16>>
Array to compute the indices for. This is not altered.
axis (Optional)
Type: System.Int32
[Optional] The working dimension. Default: (-1) sorts the last dimension.
descending (Optional)
Type: System.Boolean
[Optional] Sort in descending order. Default: (false) sort in ascending order.
sorted (Optional)
Type: ILNumerics.OutArray<UInt16>
[Optional] Returns the sorted values of A also. Default: (null) sorted 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<UInt16, Array<UInt16>, InArray<UInt16>, OutArray<UInt16>, RetArray<UInt16>, Storage<UInt16>>. 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

The sort is performed in parallel, using the quicksort algorithm.

See sort(BaseArray<UInt16> , Int32, Boolean) for details.

This function internally creates a copy of A. Therefore, the sorted values can be returned without significant overhead.

[ILNumerics numpy Module]

See Also

Reference

MathInternal.sort(BaseArray<UInt16>, Int32, Boolean)
MathInternal.sort(BaseArray<UInt16>, OutArray<Int64>, Int32, Boolean)