Re: [Numpy-discussion] numpy.ma.arg{min,max}

2009-04-11 Thread Stéfan van der Walt
Hi Adam 2009/4/11 Adam Oliner : > I see, thanks. Then the documentation should say that it returns an > array of the _smallest_ indices of the minimum values along the given > axis. Please sign up on http://docs.scipy.org, then I'll give you acess to the documentation editor. Regards Stéfan

Re: [Numpy-discussion] numpy.ma.arg{min,max}

2009-04-10 Thread Adam Oliner
Christoper, I see, thanks. Then the documentation should say that it returns an array of the _smallest_ indices of the minimum values along the given axis. If the minimum value is not unique, as in my examples, is there an efficient way to get all of these indices? It seems that I can get

Re: [Numpy-discussion] numpy.ma.arg{min,max}

2009-04-10 Thread Christopher Barker
Adam Oliner wrote: > The documentation for numpy.ma.argmin says: > "Returns array of indices of the maximum values along the given axis." > > Aside from probably meaning to say the 'minimum' values, that's a typo... > it also doesn't seem to return an array: it does if you use a higher rank ar

[Numpy-discussion] numpy.ma.arg{min,max}

2009-04-10 Thread Adam Oliner
Hi there, The documentation for numpy.ma.argmin says: "Returns array of indices of the maximum values along the given axis." Aside from probably meaning to say the 'minimum' values, it also doesn't seem to return an array: >>> a array([1, 1, 1, 5, 5]) >>> numpy.ma.argmax(a) 3 >>> numpy.ma.a