Sorting, Searching, and Counting

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

Returns the indices of the maximum values in the specified axis ignoring NaNs.

nlcpy.nanargmin

Returns the indices of the minimum values in the specified axis ignoring NaNs.

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.

Counting

nlcpy.count_nonzero

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