Feb. 8, 2007
4:46 a.m.
On 2/7/07, Christian <ckkart@hoc.net> 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