Definition (equivalent matrices)

Two $m\times n$ matrices $A, A'$ are said to be equivalent if there exists invertible $m\times m$ matrix $P$ and $n\times n$ matrix $Q$ such that $$ \begin{align*} A' = PAQ. \end{align*} $$

Equivalently, if $A'$ can be obtained from $B$ by a sequence of row and column operations.