[SciPy-User] how to get the indexes of non zero rows of sparse matric efficiently when using scipy?

teccy teccy at qq.com
Fri Aug 16 23:21:13 EDT 2013


for example, a 500x1000 sparse matrix with 300 non zero rows and 5000 non zero items, what i want is the index for the 300 rows, not the index for 5000 items, how to do this efficiently, seems scipy haven't provicde such kind of API ...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.scipy.org/pipermail/scipy-user/attachments/20130817/17d06ea9/attachment.html>


More information about the SciPy-User mailing list