The utility function vech performs a half-vectorization on the given matrices.
vech
vech(...)
...
one or more matrices to be half-vectorized.
a matrix