[SciPy-user] Sparse identity matrix speye()

Nils Wagner nwagner at mecha.uni-stuttgart.de
Thu Nov 11 06:10:24 CST 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