diff options
author | Antony Lee <anntzer.lee@gmail.com> | 2021-02-04 18:32:54 +0100 |
---|---|---|
committer | Antony Lee <anntzer.lee@gmail.com> | 2021-02-06 12:46:03 +0100 |
commit | 4152443b1d268951401e0be1351eccbddd572e97 (patch) | |
tree | 90c1417bcb2d88baeb50c12d7017d9557d95ced6 /numpy/array_api/tests/test_elementwise_functions.py | |
parent | 9f12028b9453c17b72b26355fd503e512af96a5d (diff) | |
download | numpy-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