vec


function vec<Type>(X:Type[_,_]) -> Type[_]

Vectorize a matrix by stacking its columns. This is the inverse operation of mat().

  • X: The matrix.