diff options
author | Gregory Lee <grlee77@gmail.com> | 2019-04-02 12:11:27 -0400 |
---|---|---|
committer | Gregory R. Lee <grlee77@gmail.com> | 2019-04-28 10:33:29 +0530 |
commit | 029fb94a10face946580eb8359e1f51c51217b24 (patch) | |
tree | a9304544b53dd34a02f8fbe9c2ca33e4766ad9db /numpy/core/numeric.py | |
parent | 8edc43850d1a5670c36bbfdcc97e5f67fa297071 (diff) | |
download | numpy-029fb94a10face946580eb8359e1f51c51217b24.tar.gz |
MAINT: improve efficiency of pad by avoiding use of apply_along_axis
pad assumed that apply_along_axis was modifying the padded array in-place.
In this case, it is more efficient to avoid the overhead of creating an output buffer and just
directly iterate the inplace operations instead using transpose and nditer instead.
MAINT: use moveaxis in place of transpose to improve clarity
Diffstat (limited to 'numpy/core/numeric.py')
0 files changed, 0 insertions, 0 deletions