[Numpy-discussion] diag, diagonal, ravel and all that
Charles R Harris
charlesr.harris at gmail.com
Fri Jan 2 21:04:57 EST 2015
Hi All,
The diag, diagonal, and ravel functions have recently been changed to
preserve subtypes. However, this causes lots of backward compatibility
problems for matrix users, in particular, scipy.sparse. One possibility for
fixing this is to special case matrix and so that these functions continue
to return 1-d arrays for matrix instances. This is kind of ugly as
`a..ravel` will still return a matrix when a is a matrix, an ugly
inconsistency. This may be a case where practicality beats beauty.
Thoughts?
Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20150102/e84aefb3/attachment.html>
More information about the NumPy-Discussion
mailing list