[SciPy-user] Trace of a sparse matrix ?

Nils Wagner nwagner at mecha.uni-stuttgart.de
Thu Feb 16 10:04:30 CST 2006


Hi all,

Is it possible to compute the trace of a sparse matrix say A
without detouring

spur=trace(A.todense()) ?

Nils
 



More information about the SciPy-user mailing list