[Tex/LaTex] Adding vertical line (equal sign) to augmented bmatrix WITHOUT using array

matricesrules

Is there a way to add a vertical line (equal sign) to an augmented bmatrix (4×4) WITHOUT using array? Any help provided would be greatly appreciated.

Best Answer

No, you have to use array, because the amsmath matrix environments don't provide for specifying rules.

\left[\begin{array}{@{}ccc|c@{}}
1 & 2 & 3 & 4 \\
1 & 2 & 3 & 4 \\
1 & 2 & 3 & 4 \\
1 & 2 & 3 & 4
\end{array}\right]

The trick for emulating bmatrix (or pmatrix) is having @{} at both ends.