summaryrefslogtreecommitdiff
path: root/numpy/core/fromnumeric.py
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2006-08-10 12:48:04 +0000
committerTravis Oliphant <oliphant@enthought.com>2006-08-10 12:48:04 +0000
commitc6f48c8a03c438da6e2d400752eff702d1234cfc (patch)
treefd032d49f4da991a440e64b462ccc60c3c02de55 /numpy/core/fromnumeric.py
parentb772c977e5d4d71c78919ef941858ad438ee4986 (diff)
downloadnumpy-c6f48c8a03c438da6e2d400752eff702d1234cfc.tar.gz
Add output arguments to a few more functions for consistency
Diffstat (limited to 'numpy/core/fromnumeric.py')
-rw-r--r--numpy/core/fromnumeric.py12
1 files changed, 6 insertions, 6 deletions
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: