Definition Let A=[a1,a2,…,an] be an m×n matrix, then vec(A)=[a11,a21,…,am1,a12,a22,…,am2,…,a1n,a2n,…,amn]⊺ A linear transformation which converts the matrix into a vector. Facts Let A,B,C,Z be matrices, then vec(ABC)=(C⊺⊗A)vec(B) tr(AB)=vec(A⊺)⊺vec(B) tr(AZ⊺BZC)=vec(Z⊺)⊺(CA⊗B⊺)vec(Z)