-
-
Notifications
You must be signed in to change notification settings - Fork 11.1k
Closed
Labels
Milestone
Description
Describe the issue:
The semantics of complex np.geomspace
have changed in NumPy 2.0; I suspect this is related to the changes in the meaning of the complex sign.
Reproduce the code example:
import numpy as np
print(f"{np.__version__=}")
print(np.geomspace(-0.8-1.2j, 1.1+2.8j, 3))
Output in NumPy 1.26.4:
np.__version__='1.26.4'
[-0.8 -1.2j 1.84643757-0.96401851j 1.1 +2.8j ]
Output in NumPy 2.0.0rc1:
np.__version__='2.0.0rc1'
[-0.8 -1.2j -1.84643757+0.96401851j 1.1 +2.8j ]
Python and NumPy Versions:
>>> import sys, numpy; print(numpy.__version__); print(sys.version)
2.0.0rc1
3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0]
Runtime Environment:
>>> import numpy; print(numpy.show_runtime())
[{'numpy_version': '2.0.0rc1',
'python': '3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0]',
'uname': uname_result(system='Linux', node='88048520cafa', release='6.1.58+', version='#1 SMP PREEMPT_DYNAMIC Sat Nov 18 15:31:17 UTC 2023', machine='x86_64')},
{'simd_extensions': {'baseline': ['SSE', 'SSE2', 'SSE3'],
'found': ['SSSE3',
'SSE41',
'POPCNT',
'SSE42',
'AVX',
'F16C',
'FMA3',
'AVX2'],
'not_found': ['AVX512F',
'AVX512CD',
'AVX512_KNL',
'AVX512_KNM',
'AVX512_SKX',
'AVX512_CLX',
'AVX512_CNL',
'AVX512_ICL']}}]
Context for the issue:
Found during JAX release testing.