cupy.lexsort

cupy.lexsort(keys)[source]

Perform an indirect sort using an array of keys.

Parameters:keys (cupy.ndarray) – (k, N) array containing k (N,)-shaped arrays. The k different “rows” to be sorted. The last row is the primary sort key.
Returns:Array of indices that sort the keys.
Return type:cupy.ndarray

Note

For its implementation reason, cupy.lexsort currently supports only keys with their rank of one or two and does not support axis parameter that numpy.lexsort supports.

See also

numpy.lexsort()