summaryrefslogtreecommitdiff
path: root/numpy/lib/nanfunctions.py
diff options
context:
space:
mode:
authorJulian Taylor <jtaylor.debian@googlemail.com>2014-05-30 19:03:27 +0200
committerJulian Taylor <jtaylor.debian@googlemail.com>2014-06-02 22:55:09 +0200
commit39fbc1b1e7aee9220c62d8aeaa47eb885a4fde96 (patch)
tree56bf7038c6e4c30754faadbad0a5ceb06459a57d /numpy/lib/nanfunctions.py
parentdc5a148854476ece243205f05e09fd1218692205 (diff)
downloadnumpy-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