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.nanargmax

Returns the indices of the maximum values along an axis ignoring NaNs.

dpnp.argmin

Returns the indices of the minimum values along an axis.

dpnp.nanargmin

Returns the indices of the minimum values along an axis ignoring NaNs.

dpnp.nonzero

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

dpnp.where

Return elements chosen from x or y depending on condition.

dpnp.searchsorted

Find indices where elements should be inserted to maintain order.

dpnp.extract

Return the elements of an array that satisfy some condition.

Counting

dpnp.count_nonzero

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