SciPy

scipy.sparse.dia_matrix.tocsr

dia_matrix.tocsr()[source]