summaryrefslogtreecommitdiff
path: root/numpy/lib/index_tricks.py
diff options
context:
space:
mode:
authorStefan van der Walt <stefan@sun.ac.za>2006-10-23 16:30:18 +0000
committerStefan van der Walt <stefan@sun.ac.za>2006-10-23 16:30:18 +0000
commit90372cf755f3f9f90d021d3db2d774de4e6a6161 (patch)
tree023d33e0e64d6c6af631bdbc6dc8f39dfabcead9 /numpy/lib/index_tricks.py
parent400ba83e59ef77b68c5a415daadcd1548f2e58f6 (diff)
downloadnumpy-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.py2
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)