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