I know that the inverse matrix of a square matrix exists iff its determinant isn't 0.
What about a non-square matrix?
Is there any theorem about the existence of a left- or right-inverse matrix of a non-square matrix?
It seems there does not exist a determinant of a non-square matrix as Determinant of a non-square matrix
If $A$ is a $m \times n$ and $rg(A) = n$, $A$ has a left inverse matrix $B$ which is a $n \times m$ matrix, thus $BA = I_n$.
If $rg(A) = m$, then $A$ has a right inverse matrix $B$, a $n \times m$ matrix. Thus $AB = I_m$.