diff options
author | Stefan van der Walt <stefan@sun.ac.za> | 2006-10-23 16:30:18 +0000 |
---|---|---|
committer | Stefan van der Walt <stefan@sun.ac.za> | 2006-10-23 16:30:18 +0000 |
commit | 90372cf755f3f9f90d021d3db2d774de4e6a6161 (patch) | |
tree | 023d33e0e64d6c6af631bdbc6dc8f39dfabcead9 /numpy/lib/index_tricks.py | |
parent | 400ba83e59ef77b68c5a415daadcd1548f2e58f6 (diff) | |
download | numpy-90372cf755f3f9f90d021d3db2d774de4e6a6161.tar.gz |
In ix_, do not modify shape of input array.
Diffstat (limited to 'numpy/lib/index_tricks.py')
-rw-r--r-- | numpy/lib/index_tricks.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/index_tricks.py b/numpy/lib/index_tricks.py index aefa21f53..02f78bec5 100644 --- a/numpy/lib/index_tricks.py +++ b/numpy/lib/index_tricks.py @@ -78,7 +78,7 @@ def ix_(*args): if issubclass(new.dtype.type, _nx.bool_): new = new.nonzero()[0] baseshape[k] = len(new) - new.shape = tuple(baseshape) + new = new.reshape(tuple(baseshape)) out.append(new) baseshape[k] = 1 return tuple(out) |