[Numpy-discussion] beginner question: rank-1 arrays
Mon Oct 8 17:12:07 CDT 2007
On 10/8/07, Gael Varoquaux <email@example.com> 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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Numpy-discussion