Determine sparsity of sparse matrix ( Lil matrix )
m.nnz is the number of nonzero elements in the matrix m, you can use m.size to get the total number of elements.
I have a large sparse matrix, implemented as a lil sparse matrix from sci-py. I just want a statistic for how sparse the matrix is once populated. Is there a method to find out this?