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

Sort a complex array using the real part first, then the imaginary part.

dpnp.partition

Return a partitioned copy of an array.

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

Find the indices of array elements that are non-zero, grouped by element.

dpnp.nonzero

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

dpnp.flatnonzero

Return indices that are non-zero in the flattened version of a.

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.