[SciPy-user] combine two sparse matrices

David Warde-Farley dwf@cs.toronto....
Sat May 3 14:11:47 CDT 2008


On 3-May-08, at 11:47 AM, Robin wrote:

> Perhaps I could add another layer of indirection with another fork()
> though to make sure the lists are cleaned up and just pass back the
> COO matrix - hopefully the COO matrix will pickle OK.

You probably don't want to use pickle, both save and load will be  
pretty slow.  I would call .tofile() on each of yourmatrix.row,  
yourmatrix.col and yourmatrix.data.

Cheers,
David


More information about the SciPy-user mailing list