scipy.sparse.dia_matrix. scipy.sparse.dia_matrix.shape# property dia_matrix.shape# Shape of the matrix