Construct, apply and invert a permutation matrix
Apply \(W\) to the displayed vector
The column vector has entries in the order x, y. For a column vector, W acts on the left. The permutation array is [2, 1]: output position 1 receives input position 2; output position 2 receives input position 1
\[W = \begin{bmatrix} 0 & 1 \\ 1 & 0 \end{bmatrix}\]
\[W\begin{bmatrix} x \\ y \end{bmatrix}\]