summaryrefslogtreecommitdiff
path: root/numpy/lib/user_array.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2014-09-02 09:00:23 -0600
committerCharles Harris <charlesr.harris@gmail.com>2014-09-02 09:00:23 -0600
commit3e31b9a5de6e556b683a39f4d56a1b49e00e4583 (patch)
treef870e352d9520d6cfa4ed8e68195f4ee91ae8e5d /numpy/lib/user_array.py
parent9c50f988ac27dd1758dbc46455573aaa77638c68 (diff)
downloadnumpy-3e31b9a5de6e556b683a39f4d56a1b49e00e4583.tar.gz
MAINT: Make numpy/lib/polynomial/polyval a bit faster.
Multiplying a numpy_scalar times a numpy_array is much faster than the other way around. This PR switches the order of multiplication in the polyval function resulting in a speedup of about 5x for scalar values of x. Closes #4610.
Diffstat (limited to 'numpy/lib/user_array.py')
0 files changed, 0 insertions, 0 deletions