Re: [Numpy-discussion] [numpy] argmin in multidimensional arrays

2007-03-03 Thread Glen W. Mabey
On Sat, Mar 03, 2007 at 03:09:35PM -0600, Robert Kern wrote: > Glen W. Mabey wrote: > > Does anyone else find this behavior counter-intuitive? > > > > It seems to me that one of the great design features of numpy is the > > n-dim generality it provides, and argmin is one function in this breaks

Re: [Numpy-discussion] [numpy] argmin in multidimensional arrays

2007-03-03 Thread Robert Kern
Glen W. Mabey wrote: > Does anyone else find this behavior counter-intuitive? > > It seems to me that one of the great design features of numpy is the > n-dim generality it provides, and argmin is one function in this breaks > down, IMHO. Not at all. It consistently applies the simple rule: if

Re: [Numpy-discussion] [numpy] argmin in multidimensional arrays

2007-03-03 Thread Glen W. Mabey
On Thu, 06 Jul 2006 04:59:22 -0600, Travis wrote: > Subject: numpy : argmin in multidimensional arrays > > TG wrote: > > Hi there. > > > > I am working with multi-dimensional arrays and I need to get > > coordinates of the min value in it. > > > > using myarray.argmin() returns the index in the