A square matrix is said to be $weakly \ elementary$ if it is either elementary or it is obtained from an identity matrix by replacing one diagonal entry by zero.
Prove that every square matrix is a product of weakly elementary matrices. You may use that every invertible matrix is a product of elementary matrices.
My Attempt
Now if for example we took the case of $3\times 3$ sqaure matrices, weakly dominated implies that either, the matrix is an elementary matrix or one of these three;
$\left( \begin{array}{ccc}
1 & 0 & 0 \\
0 & 1 & 0 \\
0 & 0 & 0 \end{array} \right)$, $\left( \begin{array}{ccc}
1 & 0 & 0 \\
0 & 0 & 0 \\
0 & 0 & 1 \end{array} \right)$,$\left( \begin{array}{ccc}
0 & 0 & 0 \\
0 & 1 & 0 \\
0 & 0 & 1 \end{array} \right)$.
We know and are told in the question that all invertible matrices are products of elementary matrices and so are products of weakly elementary bases by definition.
All that left to prove is that non invertible matrices can be made from products of weakly elementary bases....
Im am not sure on how to proceed after this...
For this case, are all $3\times 3$ matrices products of ;
$\left( \begin{array}{ccc}
1 & 0 & 0 \\
0 & 1 & 0 \\
0 & 0 & 0 \end{array} \right)$, $\left( \begin{array}{ccc}
1 & 0 & 0 \\
0 & 0 & 0 \\
0 & 0 & 1 \end{array} \right)$,$\left( \begin{array}{ccc}
0 & 0 & 0 \\
0 & 1 & 0 \\
0 & 0 & 1 \end{array} \right)$. ??
Any help would be much appreciated.