scipy.sparse
csr_matrix.
eliminate_zeros
Remove zero entries from the matrix
This is an in place operation.
scipy.sparse.csr_matrix.dot
scipy.sparse.csr_matrix.expm1