[Numpy-discussion] numpy release
Thu Apr 24 20:27:57 CDT 2008
On Fri, Apr 25, 2008 at 10:23 AM, Christopher Barker
> Alan G Isaac wrote:
> > 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 will be a row vector.
> > But if X is 1 by 2, then X will be a scalar?
> > Ouch!
> > Bye bye generic code.
> exactly one of the things that really bugged me with MATLAB!
I thought MATLAB treated a single index as a flat index. So it yields
a scalar no matter what (actually a 1x1 matrix no matter what, since
it's all matrices in matlab).
More information about the Numpy-discussion