[SciPy-user] sparse matrices -- slicing and fancy indexing for assignment

Stéfan van der Walt stefan@sun.ac...
Wed Oct 1 05:06:48 CDT 2008

2008/9/30 Nathan Bell <wnbell@gmail.com>:
> This is probably all you'll see in 0.7.0
> Note that assigning to a CSR/CSC matrix is in general a bad idea.  Any
> change to the sparsity structure of these formats requires O(nnz)
> operations, which basically means reconstructing the matrix from
> scratch.
> OTOH MATLAB lets you do it, so we will probably support it someday
> too.  If you submit a patch soon we might be able to integrate it by
> 0.7.0.

I was about to document this, but Nathan has already done the job:



More information about the SciPy-user mailing list