Returns the density of this sparse matrix (ratio of non-zero elements to total elements).
The density as a value between 0 and 1.