cupy.lexsort#
- cupy.lexsort(keys)[source]#
Perform an indirect sort using an array of keys.
- Parameters:
keys (cupy.ndarray) –
(k, N)
array containingk
(N,)
-shaped arrays. Thek
different “rows” to be sorted. The last row is the primary sort key.- Returns:
Array of indices that sort the keys.
- Return type:
Note
For its implementation reason,
cupy.lexsort
currently supports only keys with their rank of one or two and does not supportaxis
parameter thatnumpy.lexsort
supports.See also