On 2/7/07, Christian <[EMAIL PROTECTED]> wrote:

Sven Schreiber <svetosch <at> gmx.net> writes:
> So I think what's needed is:
>
> b = array(yourlist)
> b.reshape(b.shape[0], -1)


Row vectors are easy to get.

In [1]: asmatrix([1,2,3,4])
Out[1]: matrix([[1, 2, 3, 4]])

And nested lists work, but you will be stuck with using matrices.

Chuck
_______________________________________________
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to