What is the best way to create the below matrix in LaTeX?
I tried two ways
1)
using gather
, pmatrix
and vmatrix
inside but cannot get the desired formatting
\begin{gather}
\begin{pmatrix}
\begin{vmatrix} x_{11} & x_{12} \\ x_{21} & x_{22}\\ \end{vmatrix}
\\ y \\ z\\
\end{pmatrix}
\end{gather}
2)
I get the right format using two arrays but the numbering (gather
) doesn't work
\begin{gather}
\[\left(
\begin{array}{cr}
\left| \begin{array}{cr}
x_{11} & x_{12} \\ x_{21} & x_{22} \end{array}\right| \\ y \\ z \\
\end{array}
\right)\]
\end{gather}