Re: [Numpy-discussion] numpy.where

2007-07-14 Thread Robert Kern
Sebastian Haase wrote: > Hi. > Two things. > 1) The doc-string of numpy.where() states that transpose(where(cond, > x,y)) whould always return a 2d-array. How can this be true?? It also > says (before) that if x,y are given where(cond,x,y) always returns an > array of the same shape as cond I

[Numpy-discussion] numpy.where

2007-07-14 Thread Sebastian Haase
Hi. Two things. 1) The doc-string of numpy.where() states that transpose(where(cond, x,y)) whould always return a 2d-array. How can this be true?? It also says (before) that if x,y are given where(cond,x,y) always returns an array of the same shape as cond 2) Could we have another optional ar

Re: [Numpy-discussion] Should bool_ subclass int?

2007-07-14 Thread Stefan van der Walt
On Mon, Jul 09, 2007 at 12:32:02PM -0700, Timothy Hochberg wrote: > I gave this a try. Since so much code is auto-generated, it can be difficult > to > figure out what's going on in the core matrix stuff. Still, it seems like the > solution is almost absurdly easy, consisting of changing only thre