[SciPy-user] Sparse matrices operations

Sam frizou excellent.frizou at gmail.com
Thu Oct 19 12:49:11 EDT 2006


Hi,

I use sparse matrices and I have to do row and column operations.

1) Is it possible to assign an entire row ? an entire column ?
for example if R is a lil_matrix of shape (1,10) and M is a lil_matrix
of shape (3,10) and I want to assign R to the second row of M. I am
looking for something like:
M[2,:]=R
or
M.setrow(2,R)

2) Is it possible to have the list of the empty coordinates ? ("where"
does not seem to be implemented yet)

Thanks



More information about the SciPy-User mailing list