def rank(self, iszerofunc=_iszero, simplify=False):
        row_reduced = self.rref(iszerofunc=iszerofunc, simplify=simplify)
        rank = len(row_reduced[-1])
        return rank
Returns the rank of a matrix
dataset/ETHPy150Open sympy/sympy/sympy/matrices/matrices.py/MatrixBase.rank