question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Implement cupy.sort

See original GitHub issue

NumPy 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:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
takagicommented, Nov 2, 2016

I implemented a sample code to call Thrust via Cython: https://github.com/takagi/cython-thrust

1reaction
jekbradburycommented, Oct 26, 2016

I suspect that many use cases for cupy.sort might actually be better served by something like ndarray.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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found