On Fri, Apr 25, 2008 at 10:23 AM, Christopher Barker <[EMAIL PROTECTED]> wrote: > 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[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. > > 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). --bb _______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion