summaryrefslogtreecommitdiff
path: root/numpy/matrixlib/defmatrix.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/matrixlib/defmatrix.py')
-rw-r--r--numpy/matrixlib/defmatrix.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/numpy/matrixlib/defmatrix.py b/numpy/matrixlib/defmatrix.py
index 22855772a..1a29fb67b 100644
--- a/numpy/matrixlib/defmatrix.py
+++ b/numpy/matrixlib/defmatrix.py
@@ -783,7 +783,11 @@ class matrix(N.ndarray):
def argmax(self, axis=None, out=None):
"""
- Index of the maximum value along an axis, if multiple returns the first one
+ Indexes of the maximum values along an axis.
+
+ Return the indexes of the first occurrences of the maximum values
+ along the specified axis. If axis is None, the index is for the
+ flattened matrix.
Parameters
----------
@@ -853,7 +857,11 @@ class matrix(N.ndarray):
def argmin(self, axis=None, out=None):
"""
- Return the indices of the minimum values along an axis.
+ Indexes of the minimum values along an axis.
+
+ Return the indexes of the first occurrences of the minimum values
+ along the specified axis. If axis is None, the index is for the
+ flattened matrix.
Parameters
----------