***[Possible UCE]*** [SciPy-user] no __setitem__ in spmatrix class

Travis Oliphant oliphant at ee.byu.edu
Mon Apr 26 16:46:05 CDT 2004

pascal barbedor wrote:

> Hi
> I noticed there is no __setitem__ method in spmatrix class in 
> scipy.sparse module
> but what if one needs to (sparsely) fill the matrix after __init__ time ?

The sparse matrix module is currently incomplete.   In a few days it 
should be much better  (hopefully for Scipy 0.3.1).   Apparently matrix 
multiplication is not working (don't know why as it uses sparsekit).    
Right now what does work is to use the dictmatrix type to build up a 
matrix and then use lu_factor and or solve to solve the linear system 
(I've been using that quite a bit). 

Things should be much better for sparse in a little while.

-Travis O.

More information about the SciPy-user mailing list