summaryrefslogtreecommitdiff
path: root/numpy/polynomial/polyutils.py
diff options
context:
space:
mode:
authorJonathan L Long <jonlong@cs.berkeley.edu>2013-12-17 16:24:07 -0800
committerJonathan L Long <jonlong@cs.berkeley.edu>2013-12-17 16:33:31 -0800
commitcf22b319191c47b66d6a690888cb16ba0e08c122 (patch)
tree807ca7435ea1de4210897888ee05badb8edca96b /numpy/polynomial/polyutils.py
parentff325bb2a3e06355051bb044b6047907027105d5 (diff)
downloadnumpy-cf22b319191c47b66d6a690888cb16ba0e08c122.tar.gz
Avoid overallocating memory in arraypad with user supplied function
Previously, arraypad used zeros(shape).astype(dtype) instead of zeros(shape, dtype), which could allocate up to eight times more memory than necessary.
Diffstat (limited to 'numpy/polynomial/polyutils.py')
0 files changed, 0 insertions, 0 deletions