SciPy

scipy.sparse.spmatrix.getformat

spmatrix.getformat()[source]

Format of a matrix representation as a string.