summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2015-01-02 16:51:42 -0500
committerCharles Harris <charlesr.harris@gmail.com>2015-01-02 16:51:42 -0500
commit7fbc43b98d59ef982671b456cebc229425ae7e4e (patch)
tree7f34064ec1facebc7ca341666ab9f0b53dd5e481 /doc
parentd2b6e96f48df28fe346c6ac6fa35b2ac324ef2f6 (diff)
parent78f69df28acd80654705a43bcf1e977b9c423b53 (diff)
downloadnumpy-7fbc43b98d59ef982671b456cebc229425ae7e4e.tar.gz
Merge pull request #5398 from Garrett-R/fix_5376
BUG: Fixes #5376: np.ravel to return same array type
Diffstat (limited to 'doc')
-rw-r--r--doc/release/1.10.0-notes.rst13
1 files changed, 8 insertions, 5 deletions
diff --git a/doc/release/1.10.0-notes.rst b/doc/release/1.10.0-notes.rst
index d9091379a..1fdbb84bd 100644
--- a/doc/release/1.10.0-notes.rst
+++ b/doc/release/1.10.0-notes.rst
@@ -39,11 +39,14 @@ relaxed stride checking
~~~~~~~~~~~~~~~~~~~~~~~
NPY_RELAXED_STRIDE_CHECKING is now true by default.
-diag and diagonal
-~~~~~~~~~~~~~~~~~
-Both diag and diagonal now preserve subtypes. This will change the
-dimensions of the returned diagonal in the case of matrices and that
-may lead to problems in using the result.
+*np.ravel*, *np.diagonal* and *np.diag* now preserve subtypes
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+There was inconsistent behavior between *x.ravel()* and *np.ravel(x)*, as well
+as between *x.diagonal()* and *np.diagonal(x)*. For example, if *x* was a
+matrix, then *x.ravel()* returned a matrix, while *np.ravel(x)* returned an
+ndarray. In the case of matrices, the returned value will have different
+dimensions and that may lead to problems in using the result.
+
New Features
============