From 489d23cd0f08de8890a65dcdb5caccdb8030c646 Mon Sep 17 00:00:00 2001 From: alex Date: Thu, 31 Jul 2014 20:26:30 -0400 Subject: DOC: clarify that matrix.ravel only copies if necessary; this is already tested --- numpy/matrixlib/defmatrix.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'numpy/matrixlib/defmatrix.py') diff --git a/numpy/matrixlib/defmatrix.py b/numpy/matrixlib/defmatrix.py index 51903e258..752bfdae5 100644 --- a/numpy/matrixlib/defmatrix.py +++ b/numpy/matrixlib/defmatrix.py @@ -952,8 +952,9 @@ class matrix(N.ndarray): Returns ------- ret : matrix - A copy of the matrix, flattened to a `(1, N)` matrix where `N` + Return the matrix flattened to shape `(1, N)` where `N` is the number of elements in the original matrix. + A copy is made only if necessary. See Also -------- -- cgit v1.2.1