[Numpy-discussion] diag, diagonal, ravel and all that

Charles R Harris charlesr.harris at gmail.com
Sat Jan 3 19:28:41 EST 2015


On Sat, Jan 3, 2015 at 4:54 PM, Sturla Molden <sturla.molden at gmail.com>
wrote:

> On 03/01/15 03:04, Charles R Harris wrote:
>
> > 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?
>
> What about fixing scipy.sparse?
>

PR already in. The problem is that versions of scipy <=15 will not work
with numpy 1.10 if we don't fix this in numpy.

Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20150103/64f44046/attachment.html>


More information about the NumPy-Discussion mailing list