diff options
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 |