Implement cupy.sort
See original GitHub issueNumPy has numpy.sort
and numpy.ndarray.sort
that sort an array non-destructively and destructively. Currently CuPy leaves operations for the tasks unimplemented.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:2
- Comments:8 (8 by maintainers)
Top Results From Across the Web
cupy.sort — CuPy 11.4.0 documentation
Returns a sorted copy of an array with a stable sorting algorithm. ... For its implementation reason, cupy.sort currently does not support kind...
Read more >cupy/sort.py at master - GitHub
"""Returns a sorted copy of an array with a stable sorting algorithm. Args: a (cupy.ndarray): Array ...
Read more >cupy.sorting.search — Chainer 1.24.0 documentation
Source code for cupy.sorting.search. from cupy import core ... TODO(okuta): Implement nanargmin # TODO(okuta): Implement argwhere.
Read more >Array.Sort Method (System) - Microsoft Learn
Copy. public static void Sort (Array keys, Array? items, int index, int length, System. ... The implementation of comparer caused an error during...
Read more >Sort an array according to the order defined by another array
Copy all unvisited elements from temp[] to A1[]. Below image is a dry run of the above approach: Below is the implementation of...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I implemented a sample code to call Thrust via Cython: https://github.com/takagi/cython-thrust
I suspect that many use cases for
cupy.sort
might actually be better served by something likendarray.top_k
(which can be implemented more efficiently) even though numpy doesn’t have that natively. But there are presumably also reasons for sorting a whole array, so it’s good to have that too.