The rank of the below matrix confused me. Since it has $3$ independent rows, so the dimension of rows space should be $3$. However, it also has $7$ independent columns, then the dimension of columns space is $7$ also?
\begin{pmatrix} 1& -2& 0& 19& -6& 0& -37\\ 0& 0& 1& -6& 2& 0& 6\\ 0& 0& 0& 0& 0& 1& 3\\ 0& 0& 0& 0& 0& 0& 0\\ \end{pmatrix}
"Dimension of a matrix" makes no sense. Dimension is a property of vector spaces, not of individual vectors or matrices.
Your matrix has three independent rows (and no more), so the dimension of its row space is $3$.
If a matrix has seven independent columns (in fact, yours doesn't) and no more, then the dimension of its column space will be $7$.