The rank of a matrix is defined as the order of the largest square submatrix whose determinant is not zero.