diff options
author | Stefan van der Walt <stefan@sun.ac.za> | 2006-07-07 22:42:15 +0000 |
---|---|---|
committer | Stefan van der Walt <stefan@sun.ac.za> | 2006-07-07 22:42:15 +0000 |
commit | 8904c7ab8d3e5fb1233e80586c5a4c6b7df4a14b (patch) | |
tree | f8e23591d38efdfd030a235fa51ac85690649669 /numpy/core/numeric.py | |
parent | 46cb8b16d2ce0d0fb115910ffb3d225f82119990 (diff) | |
download | numpy-8904c7ab8d3e5fb1233e80586c5a4c6b7df4a14b.tar.gz |
Fix numeric.indices on 64-bit platforms.
Diffstat (limited to 'numpy/core/numeric.py')
-rw-r--r-- | numpy/core/numeric.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/numeric.py b/numpy/core/numeric.py index a74fb158b..52fe1d394 100644 --- a/numpy/core/numeric.py +++ b/numpy/core/numeric.py @@ -334,7 +334,7 @@ def indices(dimensions, dtype=int): 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 |