[SciPy-user] Sparse identity matrix speye()

Nils Wagner nwagner at mecha.uni-stuttgart.de
Thu Nov 11 07:10:24 EST 2004


Hi all,

Is there a better way to generate a sparse identity matrix

I have used

A=sparse.csc_matrix(identity(3))

Nils

 





More information about the SciPy-User mailing list