[SciPy-user] Trace of a sparse matrix ?

Nils Wagner nwagner at mecha.uni-stuttgart.de
Thu Feb 16 11:04:30 EST 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