public class SortingKt
| Modifier and Type | Method and Description |
|---|---|
static kotlin.Array[] |
argSort(F64Array $receiver,
boolean reverse)
Returns a permutation of indices which makes the 1-D array sorted.
|
static void |
partition(F64Array $receiver,
int p)
Partitions the array.
|
static void |
sort(F64Array $receiver,
boolean reverse)
Sorts the elements in this 1-D array in in descending order.
|
public static void sort(@NotNull
F64Array $receiver,
boolean reverse)
Sorts the elements in this 1-D array in in descending order.
The operation is done in place.
reverse - if true the elements are sorted in ascending order. Defaults to false.@NotNull
public static kotlin.Array[] argSort(@NotNull
F64Array $receiver,
boolean reverse)
Returns a permutation of indices which makes the 1-D array sorted.
reverse - see sort for details.public static void partition(@NotNull
F64Array $receiver,
int p)
Partitions the array.
Rearranges the elements in this array in such a way that
the p-th element moves to its position in the sorted copy
of the array. All elements smaller than the p-th element
are moved before this element, and all elements greater or
equals to this element are moved behind it.
The operation is done in place.