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

numpy-svn at scipy.org numpy-svn at scipy.org
Fri Jul 7 18:42:22 EDT 2006


Author: stefan
Date: 2006-07-07 17:42:15 -0500 (Fri, 07 Jul 2006)
New Revision: 2772

Modified:
   trunk/numpy/core/numeric.py
Log:
Fix numeric.indices on 64-bit platforms.


Modified: trunk/numpy/core/numeric.py
===================================================================
--- trunk/numpy/core/numeric.py	2006-07-07 20:04:06 UTC (rev 2771)
+++ trunk/numpy/core/numeric.py	2006-07-07 22:42:15 UTC (rev 2772)
@@ -334,7 +334,7 @@
     lst = []
     for i in range(len(dimensions)):
         lst.append( add.accumulate(tmp, i, )-1 )
-    return array(lst)
+    return array(lst, dtype)
 
 def fromfunction(function, dimensions, **kwargs):
     """fromfunction(function, dimensions) returns an array constructed by




More information about the Numpy-svn mailing list