Commutation matrix
In mathematics, especially in linear algebra and matrix theory, the commutation matrix is used for transforming the vectorized form of a matrix into the vectorized form of its transpose. Specifically, the commutation matrix K is the mn × mn matrix which, for any m × n matrix A, transforms vec(A) into vec(A):