[Numpy-discussion] beginner question: rank-1 arrays

Robin robince@gmail....
Mon Oct 8 17:12:07 CDT 2007


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/numpy-discussion/attachments/20071008/6476f412/attachment-0001.html 


More information about the Numpy-discussion mailing list