summaryrefslogtreecommitdiff
path: root/numpy/array_api/_set_functions.py
diff options
context:
space:
mode:
authorFrancesco Andreuzzi <andreuzzi.francesco@gmail.com>2022-05-06 19:08:39 +0200
committerGitHub <noreply@github.com>2022-05-06 19:08:39 +0200
commite3a9e1a4188a27359950029be4d82d87c4a618b2 (patch)
treefc7d9408ab7670edb10ea8cea014a55122ac19b0 /numpy/array_api/_set_functions.py
parente468e6717d03028067a4ab4487724b2fa01b95ac (diff)
downloadnumpy-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/_set_functions.py')
0 files changed, 0 insertions, 0 deletions