diff options
author | Travis Oliphant <oliphant@enthought.com> | 2006-09-28 02:22:21 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2006-09-28 02:22:21 +0000 |
commit | 483ce064ed954b8b9235f69f06bbbcff35d5fe4d (patch) | |
tree | 91f28527b7c927b06f87dea8da685cc332aa7340 /numpy/lib/index_tricks.py | |
parent | 38124a012c043fb2ddc3d2eab90af4c35db619c6 (diff) | |
download | numpy-483ce064ed954b8b9235f69f06bbbcff35d5fe4d.tar.gz |
Don't copy arrays inside ix_
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 5d4886486..a38568646 100644 --- a/numpy/lib/index_tricks.py +++ b/numpy/lib/index_tricks.py @@ -72,7 +72,7 @@ def ix_(*args): nd = len(args) baseshape = [1]*nd for k in range(nd): - new = _nx.array(args[k]) + new = _nx.asarray(args[k]) if (new.ndim != 1): raise ValueError, "Cross index must be 1 dimensional" if issubclass(new.dtype.type, _nx.bool_): |