[SciPy-Dev] slices of sparse matrixes

Matt Terry matt.terry@gmail....
Tue Feb 7 12:31:53 CST 2012

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

It seems the best way to answer your own dumb question is to ask it publicly : )


More information about the SciPy-Dev mailing list