ILNumerics Ultimate VSExtensionMethodsargsort Method (ConcreteArrayfcomplex, Arrayfcomplex, InArrayfcomplex, OutArrayfcomplex, RetArrayfcomplex, Storagefcomplex, Int32, Boolean, OutArrayfcomplex)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.3.0.0 (5.3.7131.2749)
Syntax

public static RetArray<long> argsort(
	this ConcreteArray<fcomplex, Array<fcomplex>, InArray<fcomplex>, OutArray<fcomplex>, RetArray<fcomplex>, Storage<fcomplex>> A,
	int axis = -1,
	bool descending = false,
	OutArray<fcomplex> sorted = null
)

Parameters

A
Type: ILNumerics.Core.ArraysConcreteArrayfcomplex, Arrayfcomplex, InArrayfcomplex, OutArrayfcomplex, RetArrayfcomplex, Storagefcomplex
Array to compute the indices for. This is not altered.
axis (Optional)
Type: SystemInt32
[Optional] The working dimension. Default: (-1) sorts the last dimension.
descending (Optional)
Type: SystemBoolean
[Optional] Sort in descending order. Default: (false) sort in ascending order.
sorted (Optional)
Type: ILNumericsOutArrayfcomplex
[Optional] Returns the sorted values of A also. Default: (null) sorted 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 ConcreteArrayfcomplex, Arrayfcomplex, InArrayfcomplex, OutArrayfcomplex, RetArrayfcomplex, Storagefcomplex. 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(BaseArrayfcomplex, 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(BaseArrayfcomplex, Int32, Boolean)
MathInternal.sort(BaseArrayfcomplex, OutArrayInt64, Int32, Boolean)