 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(m,n) is the "nm × mn" matrix which, for any "m × n" matrix A, transforms vec(A) into vec(AT)