scipy.sparse.lil_matrix
scipy.sparse.lil_matrix.asformat
Number of stored values, including explicit zeros.
See also