[SciPy-user] Addition of sparse matrices

Nils Wagner nwagner at mecha.uni-stuttgart.de
Tue Mar 7 01:31:45 CST 2006

Hi Robert,

I am sorry but I cannot resolve my problem w.r.t. to addition of sparse 
I tried astype('d') and astype('D').
Please can you exemplify how to fix it.

Thanks in advance


I think it works ok:

$ python add.py
0.393709556483 0.393709570169 should be zero -1.36865185851e-08

1e-8 is the float precision... Try using doubles.


More information about the SciPy-user mailing list