scipy.sparse.dia_matrix.nnz

dia_matrix.nnz

number of nonzero values

explicit zero values are included in this number

Previous topic

scipy.sparse.dia_matrix.ndim

Next topic

scipy.sparse.dia_matrix.arcsin