numpy.sorting
insertionsort[T: type](start: Ptr[T], n: int)
ainsertionsort[T: type](v: Ptr[T], tosort: Ptr[int], n: int)
heapsort[T: type](start: Ptr[T], n: int)
aheapsort[T: type](vv: Ptr[T], tosort: Ptr[int], n: int)
PYA_QS_STACK: Literal[int] = 100
SMALL_QUICKSORT: Literal[int] = 15
SMALL_MERGESORT: Literal[int] = 20
SMALL_STRING: Literal[int] = 16
mergesort[T: type](start: Ptr[T], num: int)
amergesort[T: type](v: Ptr[T], tosort: Ptr[int], num: int)
INSERTION_SORT_THRESHOLD: Literal[int] = 24
NINTHER_THRESHOLD: Literal[int] = 128
PARTIAL_INSERTION_SORT_LIMIT: Literal[int] = 8
quicksort[T: type](start: Ptr[T], n: int)
aquicksort[T: type](start: Ptr[T], tosort: Ptr[int], n: int)
key_of[T: type, UT: type](x: UT)
nth_byte[T: type](key: T, l: int)
radixsort[T: type](start: Ptr[T], num: int)
aradixsort[T: type](start: Ptr[T], tosort: Ptr[int], num: int)
TIMSORT_STACK_SIZE: Literal[int] = 128
class Buffer[T]
Fields
3
pw
Ptr[T]
size
int
T
type
Constructors
1
Methods
2
timsort[T: type](start: Ptr[T], num: int)
atimsort[T: type](start: Ptr[T], tosort: Ptr[int], num: int)
stablesort[T: type](start: Ptr[T], num: int)
astablesort[T: type](start: Ptr[T], tosort: Ptr[int], num: int)
MAX_PIVOT_STACK: Literal[int] = 50
class Sortee[T]
Fields
2
v
Ptr[T]
T
type
Methods
1
Special methods
1
class ArgSortee
Fields
1
tosort
Ptr[int]
Methods
1
Special methods
1
class ArgIdx
Fields
1
tosort
Ptr[int]
Special methods
1
partition(a, kth, axis = -1, kind: str = "introselect")
argpartition(a: ndarray, kth, axis = -1, kind: str = "introselect")
lexsort(keys, axis: int = -1)
sort(a, axis = -1, kind: Optional[str] = None)
argsort(a, axis = -1, kind: Optional[str] = None)
sort_complex(a)
class ndarray[dtype, ndim]
Methods
4