[SciPy-dev] Sparse matrix indexing.

Nathan Bell wnbell@gmail....
Sun Apr 6 22:35:27 CDT 2008

On Sun, Apr 6, 2008 at 10:22 PM, Viral Shah
<vshah@interactivesupercomputing.com> wrote:

>  I did come across this on scipy-dev, but it seems like it works for
>  only CSR ?
>  http://article.gmane.org/gmane.comp.python.scientific.devel/6702/match=sparse+indexing

Viral, thanks for your interest in scipy.sparse.  Both csr_matrix and
csc_matrix now support fancy indexing (in the current developer's


FWIW the internals of csr_matrix.__getitem__ use an approach similar
to you subsref() function, so their efficiency should be comparable.

Nathan Bell wnbell@gmail.com

More information about the Scipy-dev mailing list