NumArray array-indexing

Christopher T King squirrel at WPI.EDU
Thu Aug 12 20:48:19 CEST 2004


On Thu, 12 Aug 2004, Christopher T King wrote:

> On 12 Aug 2004, Michael Drumheller wrote:
> 
> > Basically, it seems to me that NumArray simply does not support
> > the distinction between a column vector and a row vector.  That 
> > is, if you have x=[1,2,3], then transpose(x) is a no-op.  True?
> 
> False.  You have to supply numarray with a two-dimensional array in order 
> to perform a two-dimensional transpose:

Where by "False" I meant "The first sentence is false, but the second 
sentence is true".  Column vectors and row vectors must be represented as 
two-dimensional arrays; transpose() of a one-dimensional array is a no-op 
since all transpose() does (by default) is reverse the order of the axes.




More information about the Python-list mailing list