> >>Vidar Gundersen wrote: > > The vec-operator transforms a matrix into a vector by stacking its > > columns one underneath the other. >>> x matrix([[1, 2], [3, 4]]) >>> matrix([[1,2],[3,4]]).T.ravel() matrix([[1, 3, 2, 4]])