scipy.sparse
scipy.sparse.dia_matrix
scipy.sparse.dia_matrix.nnz
dia_matrix.
shape
Get shape of a matrix.