Swizzling (computer graphics)

In terms of linear algebra, this is equivalent to multiplying by a matrix whose rows are standard basis vectors. If ${\displaystyle A=(1,2,3,4)^{T}}$, then swizzling ${\displaystyle A}$ as above looks like
${\displaystyle A.wwxy={\begin{bmatrix}0&0&0&1\\0&0&0&1\\1&0&0&0\\0&1&0&0\end{bmatrix}}{\begin{bmatrix}1\\2\\3\\4\end{bmatrix}}={\begin{bmatrix}4\\4\\1\\2\end{bmatrix}}}$.