[Numpy-discussion] Re: inconsistent use of axis= keyword argument?

Sasha ndarray at mac.com
Sat Feb 25 08:17:01 CST 2006


> >>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]])




More information about the Numpy-discussion mailing list