This function constructs the commutation matrix K, which maps
c(A) to c(t(A)) for an \(m\) by \(n\) matrix
A.
References
Magnus, J. R., & Neudecker, H. (1979). The commutation matrix: some properties and applications. The Annals of Statistics, 381-394. tools:::Rd_expr_doi("10.1214/aos/1176344621")
Tracy, D. S., & Dwyer, P. S. (1969). Multivariate maxima and minima with matrix derivatives. Journal of the American Statistical Association, 64(328), 1576-1594. tools:::Rd_expr_doi("10.1080/01621459.1969.10501078")