[SciPy-user] Interaction of sparse and dense matrices in scipy

Robert Cimrman cimrman3 at ntc.zcu.cz
Mon Feb 20 08:48:15 CST 2006

> Hi Robert,
> Is there a special reason why you have used the CSC format ?

yes, because these functions are simple wrappers of the 'spdiags' 
fortran function which returns the CSC matrix.

> speye(n, m=None, k=0, dtype='d')
>     speye( n, m ) returns a (n, m) matrix tored
>     in CSC sparse matrix format, where the  k-th diagonal is all ones,
>     and everything else is zeros.
> It should be stored instead of tored ;-)

fixed, thanks.

More information about the SciPy-user mailing list