Sorting and Searching

The following tables show sorting and searching functions provided by NLCPy.

Sorting

nlcpy.argsort

Returns the indices that would sort an array.

nlcpy.sort

Returns a sorted copy of an array.

Searching

nlcpy.argmax

Returns the indices of the maximum values along an axis.

nlcpy.argmin

Returns the indices of the minimum values along an axis.

nlcpy.argwhere

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

nlcpy.nonzero

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