[SciPy-Dev] slices of sparse matrixes
Warren Weckesser
warren.weckesser at enthought.com
Tue Feb 7 13:34:22 EST 2012
On Tue, Feb 7, 2012 at 12:31 PM, Matt Terry <matt.terry at gmail.com> wrote:
> sparse matrixes are *matrixes* not *ndarrays* The two slice differently.
>
> >>> d = numpy.matrix( (4,3) )
> >>> s = scipy.sparse.lil_matrix(d)
> >>> d[:,0].shape == s[:,0].shape
> True
>
> It seems the best way to answer your own dumb question is to ask it
> publicly : )
>
>
Been there, done that. :)
I think it was on the scikits.learn mailing list that I saw some interest
in a sparse ndarray object. That would be a nice addition to the scipy
sparse library.
Warren
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scipy-dev/attachments/20120207/aee03579/attachment.html>
More information about the SciPy-Dev
mailing list