scipy.sparse.bsr_matrix.nonzero

bsr_matrix.nonzero()

nonzero indices

Returns a tuple of arrays (row,col) containing the indices of the non-zero elements of the matrix.

This Page