[SciPy-user] csr_matrix

Robert Cimrman cimrman3 at ntc.zcu.cz
Thu Nov 2 05:06:28 CST 2006

Sam frizou wrote:
> I tryed using these dok_matrix, which seems ok for me.
> but, it appears that m*n returns a crc_matrix which I cannot convert
> into a dok_matrix. Am I right ?

Yes, you are right. Well, you could do it by hand (use dok.iteritems()
to iterate over nonzeros).

The sparse module requires some more work to unify the interface of the
various formats and implement missing features (like making a dok_matrix
out of a csr_matrix). I will try to look at it.


More information about the SciPy-user mailing list