Consider the following two matrices:
The matrix on the left is rendered with the code
\left[
\begin{array}{rrrr}
1 & -32 & 0 & 15 \\
16 & -138 & -3 & 5 \\
4 & 14 & 11 & 19
\end{array}
\right]
The one on the left is given by:
\begin{tikzpicture}
\matrix[
, matrix of math nodes
, left delimiter = {[}
, right delimiter = {]}
] (m)
{
1 & -32 & 0 & 15 \\
16 & -138 & -3 & 5 \\
4 & 14 & 11 & 19 \\
};
\end{tikzpicture}
I want the one on the right to look like the one on the left. A few obvious differences are:
- The columns of the matrix on the left are right-aligned.
- The whitespace is distributed differently in the two matrices.
What can I do to make the matrix on the right look more like the matrix on the left?

