SciPy

scipy.sparse.dia_matrix.getformat

dia_matrix.getformat()[source]

Format of a matrix representation as a string.