sorting.rst 666 Bytes
Newer Older
root's avatar
root committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
Sorting, searching, and counting
================================

.. Hint:: `NumPy API Reference: Sorting, searching, and counting <https://numpy.org/doc/stable/reference/routines.sort.html>`_

.. currentmodule:: cupy

Sorting
-------

.. autosummary::
   :toctree: generated/

   sort
   lexsort
   argsort
   msort
   sort_complex
   partition
   argpartition

.. seealso:: :func:`cupy.ndarray.sort`

Searching
---------

.. autosummary::
   :toctree: generated/

   argmax
   nanargmax
   argmin
   nanargmin
   argwhere
   nonzero
   flatnonzero
   where
   searchsorted
   extract

Counting
--------

.. autosummary::
   :toctree: generated/

   count_nonzero