I'm using pmatrix from amsmath package and would like the output to align all entries in the same column to be align on the right hand side, as shown here in the code:
\[ \begin{pmatrix}
-1 & 1 & -2\\
0 & -1 & 4\\
0 & 0 & 1
\end{pmatrix} \]
by default, pmatrix will center.
Any way to do this?


amsmathusers guide: "(If you need left or right alignment in a column or other special formats you must resort to array.)" (p.8) – barbara beeton Feb 13 '14 at 14:20