diff options
author | Josh Warner (Mac) <warner.joshua@mayo.edu> | 2013-05-08 00:13:41 -0500 |
---|---|---|
committer | Josh Warner <SilverTrumpet999@gmail.com> | 2013-05-19 14:35:41 -0500 |
commit | 246c06d2475718ec36ba193494444464e497c69a (patch) | |
tree | c73f8261edd5ba459644218ba5ca478904470419 /numpy/matrixlib/defmatrix.py | |
parent | 0af5f87b0b5c25ce0d71dca8686414fa47708106 (diff) | |
download | numpy-246c06d2475718ec36ba193494444464e497c69a.tar.gz |
ENH: improved, faster algorithm for array padding
New padding method which scales much better with dimensionality.
This new implementation is fully vectorized, builds each abstracted
n-dimensional padding block in a single step, and takes advantage
of separability. The API is completely preserved, and the old
algorithm is used if a vector function is input for `mode`.
The new algorithm is faster for all tested combinations of inputs,
and scales much better with dimensionality. Execution time reductions
from ~25% for small rank 1 arrays to >99% for rank 4+ arrays observed.
Diffstat (limited to 'numpy/matrixlib/defmatrix.py')
0 files changed, 0 insertions, 0 deletions