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.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/numpy/matrixlib/defmatrix.py b/numpy/matrixlib/defmatrix.py
index dd6221670..1c7e29d53 100644
--- a/numpy/matrixlib/defmatrix.py
+++ b/numpy/matrixlib/defmatrix.py
@@ -457,7 +457,9 @@ class matrix(N.ndarray):
# To update docstring from array to matrix...
def flatten(self, order='C'):
"""
- Return a copy of the matrix collapsed into one dimension.
+ Return a flattened copy of the matrix.
+
+ All `N` elements of the matrix are placed into a single row.
Parameters
----------
@@ -469,7 +471,8 @@ class matrix(N.ndarray):
Returns
-------
y : matrix
- A copy of the input matrix, flattened to one dimension.
+ A copy of the matrix, flattened to a `(1, N)` matrix where `N`
+ is the number of elements in the original matrix.
See Also
--------