summaryrefslogtreecommitdiff
path: root/numpy/array_api/tests/test_elementwise_functions.py
diff options
context:
space:
mode:
authorAntony Lee <anntzer.lee@gmail.com>2021-02-04 18:32:54 +0100
committerAntony Lee <anntzer.lee@gmail.com>2021-02-06 12:46:03 +0100
commit4152443b1d268951401e0be1351eccbddd572e97 (patch)
tree90c1417bcb2d88baeb50c12d7017d9557d95ced6 /numpy/array_api/tests/test_elementwise_functions.py
parent9f12028b9453c17b72b26355fd503e512af96a5d (diff)
downloadnumpy-4152443b1d268951401e0be1351eccbddd572e97.tar.gz
MAINT: Avoid moveaxis overhead in median.
This change speeds up taking the median of 1001 floats by ~20%, as measured by `python -mtimeit -s 'import numpy as np; x = np.random.randn(1001)' -- 'np.median(x)'`
Diffstat (limited to 'numpy/array_api/tests/test_elementwise_functions.py')
0 files changed, 0 insertions, 0 deletions