diff options
author | Francesco Andreuzzi <andreuzzi.francesco@gmail.com> | 2022-05-06 19:08:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-06 19:08:39 +0200 |
commit | e3a9e1a4188a27359950029be4d82d87c4a618b2 (patch) | |
tree | fc7d9408ab7670edb10ea8cea014a55122ac19b0 /numpy/array_api/_manipulation_functions.py | |
parent | e468e6717d03028067a4ab4487724b2fa01b95ac (diff) | |
download | numpy-e3a9e1a4188a27359950029be4d82d87c4a618b2.tar.gz |
ENH: Optimize `np.empty` for scalar arguments (#20175)
Optimizes the parsing of shape tuples and integers by avoiding multiple conversions and generally
refactoring the code.
Closes gh-19010, that parsing a single integer was very slow (due to trying to convert it to a squence twice).
Co-authored-by: Sebastian Berg <sebastian@sipsolutions.net>
Diffstat (limited to 'numpy/array_api/_manipulation_functions.py')
0 files changed, 0 insertions, 0 deletions