Closed
Description
Describe the issue:
Passing an array of unique values to np.unique returns an array with non-unique values.
I believe this problem may be related to the previously reported issue #27037, which was resolved in version 2.1.0 of NumPy. However, this fix is available only for Python versions 3.10 or later. Consequently, when installing NumPy for Python version 3.9 from PyPI without specifying a version (e.g., pip install numpy), the installed version is 2.0.1, which still contains the bug.
Reproduce the code example:
import numpy as np
np.unique([1, 2, 3, 4, 5, ...])
Error message:
No response
Python and NumPy Versions:
2.0.1
3.9.19 (main, Aug 2 2024, 17:17:58) [GCC 10.2.1 20210130 (Red Hat 10.2.1-11)]
Runtime Environment:
No response
Context for the issue:
No response
Metadata
Metadata
Assignees
Labels
features related to google Highwayfeatures related to google HighwayIssues in SIMD (fast instruction sets) code or machineryIssues in SIMD (fast instruction sets) code or machinery