Solution (source code)

= Solution

The <rank> of $A$ is \b[the dimension of its <column space>], equivalently the dimension of its <row space> or the number of <pivot columns> in a row-echelon form. For an $n\times n$ matrix it lies between zero and $n$.