how about 2 in 1 here to shorten th eline length:

```
        row_reduced = self.rref(
            simplified=simplified, iszerofunc=iszerofunc, simplify=simplify)
        rank = len(row_reduced[-1])
```