This implicitly relies on row and column rank being the same.
That's not a problem, as they are the same.
Yes, I know. It was just what my thoughts went to.