From 483ce064ed954b8b9235f69f06bbbcff35d5fe4d Mon Sep 17 00:00:00 2001 From: Travis Oliphant Date: Thu, 28 Sep 2006 02:22:21 +0000 Subject: Don't copy arrays inside ix_ --- numpy/lib/index_tricks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/lib/index_tricks.py') 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_): -- cgit v1.2.1