This is a pre-release version (2.5.0.dev0+git20251130.2de293a).Go to latest (2.4.4)
{ } Raw JSON

bundles / numpy 2.5.0.dev0+git20251130.2de293a / numpy / lib / _arraysetops_impl / _unique1d

function

numpy.lib._arraysetops_impl:_unique1d

source: build-install/usr/lib/python3.14/site-packages/numpy/lib/_arraysetops_impl.py:350

Signature

def _unique1d(ar, return_index = False, return_inverse = False, return_counts = False, *, equal_nan = True, inverse_shape = None, axis = None, sorted = True)

Summary

Find the unique elements of an array, ignoring shape.

Extended Summary

Uses a hash table to find the unique elements if possible.

Aliases

  • numpy.lib._arraysetops_impl._unique1d