diff options
author | Julian Taylor <jtaylor.debian@googlemail.com> | 2014-05-30 19:03:27 +0200 |
---|---|---|
committer | Julian Taylor <jtaylor.debian@googlemail.com> | 2014-06-02 22:55:09 +0200 |
commit | 39fbc1b1e7aee9220c62d8aeaa47eb885a4fde96 (patch) | |
tree | 56bf7038c6e4c30754faadbad0a5ceb06459a57d /numpy/lib/nanfunctions.py | |
parent | dc5a148854476ece243205f05e09fd1218692205 (diff) | |
download | numpy-39fbc1b1e7aee9220c62d8aeaa47eb885a4fde96.tar.gz |
ENH: use sparse meshgrid instead of indices().tolist()
tolist() converts numpy integers to python integers which are converted
back to numpy integers by the indexing.
meshgrid(indexing='ij') returns the indices wanted here as the right type.
triples performance of sorting a size=(200, 200, 50) array along axis 2
and reduces memory usage by almost 40%.
Diffstat (limited to 'numpy/lib/nanfunctions.py')
0 files changed, 0 insertions, 0 deletions