[Numpy-svn] r3224 - trunk/numpy/lib

numpy-svn at scipy.org numpy-svn at scipy.org
Wed Sep 27 21:22:44 CDT 2006


Author: oliphant
Date: 2006-09-27 21:22:21 -0500 (Wed, 27 Sep 2006)
New Revision: 3224

Modified:
   trunk/numpy/lib/index_tricks.py
Log:
Don't copy arrays inside ix_

Modified: trunk/numpy/lib/index_tricks.py
===================================================================
--- trunk/numpy/lib/index_tricks.py	2006-09-27 23:20:24 UTC (rev 3223)
+++ trunk/numpy/lib/index_tricks.py	2006-09-28 02:22:21 UTC (rev 3224)
@@ -72,7 +72,7 @@
     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_):



More information about the Numpy-svn mailing list