[SciPy-User] Efficient iteration over a scipy.sparse.csc_matrix?

Jacob Biesinger jake.biesinger@gmail....
Fri Aug 13 20:17:45 CDT 2010


Hi!

I have some large sparse matrices (csc_matrix since they are 1e10 rows x 4
columns).  I expect that some (many) of the rows are completely empty so is
there an efficient way to iterate over *only* the rows that have entries?
 Perhaps something along the lines of
useRows=set(ma.indices) ?

Thanks!
--
Jake Biesinger
Graduate Student
Xie Lab, UC Irvine
(949) 231-7587
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/scipy-user/attachments/20100813/22d38b17/attachment.html 


More information about the SciPy-User mailing list