Sorting, Searching, and Counting

Sorting

dpnp.sort

Return a sorted copy of an array.

dpnp.argsort

Returns the indices that would sort an array.

dpnp.partition

Return a partitioned copy of an array.

See also

dpnp.dparray.sort()

Searching

dpnp.argmax

Returns the indices of the maximum values along an axis.

dpnp.argmin

Returns the indices of the minimum values along an axis.

dpnp.nonzero

Return the indices of the elements that are non-zero.

dpnp.where

Find indices where elements should be inserted to maintain order.

dpnp.searchsorted

Find indices where elements should be inserted to maintain order.

Counting

dpnp.count_nonzero

Counts the number of non-zero values in the array in_array1.