This is LaTeX code:

[latex]
M =
\left( \begin{array}{cc}
-1 & 0 \\
0 & -1 \end{array} \right)
[/latex]