UniqueInverseΒΆ

Find the unique elements of x and indices to reconstruct x.

Abstract Signature:

UniqueInverse(x: Array)

JAX (Core)

API: jnp.unique_inverse
Strategy: Direct Mapping

NumPy

API: numpy.unique_inverse
Strategy: Direct Mapping