heat.array_api._sorting_functions
Module Contents
- sort(x: heat.array_api._array_object.Array, /, *, axis: int = -1, descending: bool = False, stable: bool = True) heat.array_api._array_object.Array[source]
Returns a sorted copy of an input array x.
- Parameters:
x (Array) – Input array.
axis (int) – Axis along which to sort. If set to
-1, the function must sort along the last axis. Default:-1.descending (bool) – Sort order. If
True, the array must be sorted in descending order (by value). IfFalse, the array must be sorted in ascending order (by value). Default:False.stable (bool) – Sort stability. If
True, the returned array maintains the relative order ofxvalues which compare as equal. IfFalse, the returned array may or may not maintain the relative order ofxvalues which compare as equal. Default:True.