I'd like to have an environment to make augmented matrices with multiple columns on the right hand side. In this question I found a nice environment that makes an augmented matrix with one column on the right hand side.
The code in that question is:
\newenvironment{amatrix}[1]{%
\left(\begin{array}{@{}*{#1}{c}|c@{}}
}{%
\end{array}\right)
}
