[Numpy-svn] r2792 - trunk/numpy/core

numpy-svn at scipy.org numpy-svn at scipy.org
Mon Jul 10 17:11:13 EDT 2006


Author: stefan
Date: 2006-07-10 16:11:05 -0500 (Mon, 10 Jul 2006)
New Revision: 2792

Modified:
   trunk/numpy/core/numeric.py
Log:
Use dtype in numeric.indices.


Modified: trunk/numpy/core/numeric.py
===================================================================
--- trunk/numpy/core/numeric.py	2006-07-10 12:44:46 UTC (rev 2791)
+++ trunk/numpy/core/numeric.py	2006-07-10 21:11:05 UTC (rev 2792)
@@ -333,8 +333,8 @@
     tmp = ones(dimensions, dtype)
     lst = []
     for i in range(len(dimensions)):
-        lst.append( add.accumulate(tmp, i, )-1 )
-    return array(lst, dtype)
+        lst.append( add.accumulate(tmp, i, dtype)-1 )
+    return array(lst)
 
 def fromfunction(function, dimensions, **kwargs):
     """fromfunction(function, dimensions) returns an array constructed by




More information about the Numpy-svn mailing list