Applications of the matrix operators vech and vec