Construct, apply and invert a permutation matrix
Apply \(V\) to the displayed vector
The row vector has entries in the order g, h. For a row vector, V acts on the right. The permutation array is [2, 1]: input positions move as follows: 1 to 2, 2 to 1
\[V = \begin{bmatrix} 0 & 1 \\ 1 & 0 \end{bmatrix}\]
\[\begin{bmatrix} g & h \end{bmatrix}V\]