From 0a7f9f5f8bffdcbb4ba94c98d722056b1e6bb133 Mon Sep 17 00:00:00 2001 From: Stefan van der Walt Date: Mon, 10 Jul 2006 21:11:05 +0000 Subject: Use dtype in numeric.indices. --- numpy/core/numeric.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'numpy/core/numeric.py') diff --git a/numpy/core/numeric.py b/numpy/core/numeric.py index 52fe1d394..166a2d5cc 100644 --- a/numpy/core/numeric.py +++ b/numpy/core/numeric.py @@ -333,8 +333,8 @@ def indices(dimensions, dtype=int): 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 -- cgit v1.2.1