[Numpy-discussion] numpy release
Alan G Isaac
aisaac@american....
Thu Apr 24 17:29:44 CDT 2008
On Thu, 24 Apr 2008, Christopher Barker apparently wrote:
> I suppose a "Vector" can be either a (n,1) or a (1,n)
> matrix that allows single indexing.
This bothers me.
So, if X is 2 by 2, then X[0] will be a row vector.
But if X is 1 by 2, then X[0] will be a scalar?
Ouch!
Bye bye generic code.
Or are you still having separate classes and
not just changing ``__getitem__``? OK, I see
that is most likely what you meant.
Cheers,
Alan
More information about the Numpy-discussion
mailing list