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

Joseph Turian turian at gmail.com
Thu May 1 15:54:13 EDT 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://mail.scipy.org/pipermail/scipy-user/attachments/20080501/72d81206/attachment.html>


More information about the SciPy-User mailing list