ILNumerics - Technical Application Development
Assembly: ILNumerics.numpy (in ILNumerics.numpy.dll) Version: 5.5.0.0 (5.5.7503.3146)
[numpy API] Sort elements of A inplace.
[ILNumerics numpy Module]
Namespace: ILNumerics
Assembly: ILNumerics.numpy (in ILNumerics.numpy.dll) Version: 5.5.0.0 (5.5.7503.3146)
Syntax
public static void sort( this Mutable<long, Array<long>, InArray<long>, OutArray<long>, RetArray<long>, Storage<long>> A, int axis = -1, bool descending = false )
Parameters
- A
- Type: ILNumerics.Core.Arrays.Mutable<Int64, Array<Int64>, InArray<Int64>, OutArray<Int64>, RetArray<Int64>, Storage<Int64>>
Array to get sorted. - 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.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type Mutable<Int64, Array<Int64>, InArray<Int64>, OutArray<Int64>, RetArray<Int64>, Storage<Int64>>. 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<Int64> , Int32, Boolean) for details.
This function works on the elements of A directly. No copy will be made. Therefore, it is only available for mutable arrays.
[ILNumerics numpy Module]
See Also
Reference
MathInternal.sort(BaseArray<Int64>, Int32, Boolean)