From c6f48c8a03c438da6e2d400752eff702d1234cfc Mon Sep 17 00:00:00 2001 From: Travis Oliphant Date: Thu, 10 Aug 2006 12:48:04 +0000 Subject: Add output arguments to a few more functions for consistency --- numpy/core/fromnumeric.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'numpy/core/fromnumeric.py') diff --git a/numpy/core/fromnumeric.py b/numpy/core/fromnumeric.py index 56d6b86f3..94d491c95 100644 --- a/numpy/core/fromnumeric.py +++ b/numpy/core/fromnumeric.py @@ -141,8 +141,8 @@ def argsort(a, axis=-1, kind='quicksort'): return _wrapit(a, 'argsort', axis, kind) return argsort(axis, kind) -def argmax(a, axis=-1): - """argmax(a,axis=-1) returns the indices to the maximum value of the +def argmax(a, axis=None): + """argmax(a,axis=None) returns the indices to the maximum value of the 1-D arrays along the given axis. """ try: @@ -151,8 +151,8 @@ def argmax(a, axis=-1): return _wrapit(a, 'argmax', axis) return argmax(axis) -def argmin(a, axis=-1): - """argmin(a,axis=-1) returns the indices to the minimum value of the +def argmin(a, axis=None): + """argmin(a,axis=None) returns the indices to the minimum value of the 1-D arrays along the given axis. """ try: @@ -250,8 +250,8 @@ def shape(a): result = asarray(a).shape return result -def compress(condition, m, axis=-1, out=None): - """compress(condition, x, axis=-1) = those elements of x corresponding +def compress(condition, m, axis=None, out=None): + """compress(condition, x, axis=None) = those elements of x corresponding to those elements of condition that are "true". condition must be the same size as the given dimension of x.""" try: -- cgit v1.2.1