scipy.sparse
dia_matrix.
nnz
Number of stored values, including explicit zeros.
See also
count_nonzero
scipy.sparse.dia_matrix.shape
scipy.sparse.dia_matrix.arcsin