I\'m wondering what the best way is to iterate nonzero entries of sparse matrices with scipy.sparse. For example, if I do the following:
from scipy.sparse im
Try filter(lambda x:x, x) instead of x.
filter(lambda x:x, x)
x