zcollection.partitioning.abc.unique#

zcollection.partitioning.abc.unique(arr)[source]#

Return unique elements and their indices.

Parameters:

arr (Array) – Array of elements.

Returns:

Tuple of unique elements and their indices.

Return type:

tuple[NDArray, NDArray]