diff options
author | Travis Oliphant <oliphant@enthought.com> | 2006-06-30 20:04:28 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2006-06-30 20:04:28 +0000 |
commit | 7d4c3ed2a0caebf1ce9e0da3473fdbde005699e5 (patch) | |
tree | fa4801786b5c59f13deff0bdf1cf25c3c8656224 /numpy/core/ma.py | |
parent | ec1662fb0182a87ebf39ec476109becfc7a8cdb1 (diff) | |
download | numpy-7d4c3ed2a0caebf1ce9e0da3473fdbde005699e5.tar.gz |
Make the default array type float.
Diffstat (limited to 'numpy/core/ma.py')
-rw-r--r-- | numpy/core/ma.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/numpy/core/ma.py b/numpy/core/ma.py index ae7f2f997..95c030746 100644 --- a/numpy/core/ma.py +++ b/numpy/core/ma.py @@ -1547,17 +1547,16 @@ def indices (dimensions, dtype=None): """ return array(numeric.indices(dimensions, dtype)) -def zeros (shape, dtype=int): - """zeros(n, dtype=int) = +def zeros (shape, dtype=float): + """zeros(n, dtype=float) = an array of all zeros of the given length or shape.""" return array(numeric.zeros(shape, dtype)) -def ones (shape, dtype=int): - """ones(n, dtype=int) = +def ones (shape, dtype=float): + """ones(n, dtype=float) = an array of all ones of the given length or shape.""" return array(numeric.ones(shape, dtype)) - def count (a, axis = None): "Count of the non-masked elements in a, or along a certain axis." a = masked_array(a) |