[Numpy-discussion] untenable matrix behavior in SVN
Tue Apr 29 17:23:58 CDT 2008
On Tue, Apr 29, 2008 at 2:18 PM, Anne Archibald
> On 29/04/2008, Keith Goodman <firstname.lastname@example.org> wrote:
> > In my use i is most commonly an array (i = M.where(y.A) where y is
> > a nx1 matrix), sometimes a list, and in ipython when debugging or
> > first writing the code, a scalar. It would seem odd to me if x[i,:]
> > returned different types of objects based on the type of i:
> > array index
> > idx = M.where(y.A) where y is a nx1 matrix
> > x[dx,:] --> matrix
> > list index
> > idx = 
> > x[idx,:] --> matrix?
> > scalar index
> > idx = 0
> > x[idx,:] --> not matrix
> It is actually pretty unreasonable to hope that
> should return objects of the same rank.
Why it unreasonable to hope that
where x is a matrix, continue to return matrices?
More information about the Numpy-discussion