[SciPy-user] Iteration over scipy.sparse matrices?

Joseph Turian turian@gmail....
Thu May 1 14:54:13 CDT 2008


Is there a (storage-format agnostic) method for iterating over the elements
of a sparse matrix?
I don't care what order they come in. I just want to make sure that I can
iterate over the matrix in time linear in nnz, and have the (row, col) and
data for each non-zero entry.

Thanks!

  Joseph

-- 
Academic: http://www-etud.iro.umontreal.ca/~turian/
Business: http://www.metaoptimize.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/scipy-user/attachments/20080501/72d81206/attachment.html 


More information about the SciPy-user mailing list