SciPy

scipy.sparse.dia_matrix.tocoo

dia_matrix.tocoo()[source]