SciPy

scipy.sparse.linalg.SuperLU.shape

SuperLU.shape

Shape of the original matrix as a tuple of ints.