On 10/8/07, Gael Varoquaux <gael.varoquaux@normalesup.org> wrote:
r_[0:10] and c_[0:10].
Does that suit you ? The first one is indeed only 1D, but I don't see the
problem with that. If you really want 2D you can use c_[0:10].T .
Thanks, but not really :)
Firstly - for me I don' see any difference between the two, they both give a numpy rank-1 array which doesn't have a row/column characteristic.
x.shape for both of the above is (10,) I need (10,1) or (1,10) for my code.
Robin