[SciPy-user] Initializing COO/CSR matrix before function call
Dinesh B Vadhia
dineshbvadhia at hotmail.com
Sat Feb 2 23:16:08 EST 2008
I'm using a function to load a sparse matrix A using coo_matrix and then to transform it into a csr_matrix. We are testing a bunch of very large sized matrices A and hence the use of a function. In addition, A is available to many other functions in the program.
Python says that A has to be defined (or initialized) before sending to the load function. But, doesn't that mean initializing A as 'empty' or 'zeroed', both of which impact memory use, defeats the purpose of using coo and csr? I've looked at the Sparse docstring help and cannot see a way out.
Have I missed something?
Dinesh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.scipy.org/pipermail/scipy-user/attachments/20080202/ae090d6f/attachment.html>
More information about the SciPy-User
mailing list