Re: [Numpy-discussion] index of minimum of array

2007-04-13 Thread Alan Isaac
 On 4/13/07, Tommy Grav [EMAIL PROTECTED] wrote:
 how do I find the index of the minimum value of an numpy 
 array?  Example a = array([1.,2.,0.4,3.]) I want the i=2 
 since a[i] = 0.4 is the smallest value in a. 


On Fri, 13 Apr 2007, Timothy Hochberg wrote: 
 argmin 

Just a reminder that there exist a very useful example list
http://www.scipy.org/Numpy_Example_List#argmin

and a wonderful reference:
http://www.tramy.us/

Cheers,
Alan Isaac


___
Numpy-discussion mailing list
[EMAIL PROTECTED]
http://projects.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] index of minimum of array

2007-04-13 Thread Hugo
Bill Baxter wrote:
 On 4/14/07, Alan Isaac [EMAIL PROTECTED] wrote:
 On 4/13/07, Tommy Grav [EMAIL PROTECTED] wrote:
 how do I find the index of the minimum value of an numpy
 array?  Example a = array([1.,2.,0.4,3.]) I want the i=2
 
 Just a reminder that there exist a very useful example list
 http://www.scipy.org/Numpy_Example_List#argmin
 
 And in addition to examples it has great See Also info.  I probably
 use it more for the See Also than the actual examples.  Sure enough
 See Also for min() and max() refer to argmin() and argmax().

Perhaps in this particular case it would be nice to have a See Also for 'nan'
 at argmin() and argmax(), since there is info about nanargmin and nanargmax().

Hugo
___
Numpy-discussion mailing list
[EMAIL PROTECTED]
http://projects.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] index of minimum of array

2007-04-13 Thread Bill Baxter
On 4/14/07, Hugo [EMAIL PROTECTED] wrote:
 Bill Baxter wrote:
  On 4/14/07, Alan Isaac [EMAIL PROTECTED] wrote:
  On 4/13/07, Tommy Grav [EMAIL PROTECTED] wrote:
  how do I find the index of the minimum value of an numpy
  array?  Example a = array([1.,2.,0.4,3.]) I want the i=2
 
  Just a reminder that there exist a very useful example list
  http://www.scipy.org/Numpy_Example_List#argmin
 
  And in addition to examples it has great See Also info.  I probably
  use it more for the See Also than the actual examples.  Sure enough
  See Also for min() and max() refer to argmin() and argmax().

 Perhaps in this particular case it would be nice to have a See Also for 'nan'
  at argmin() and argmax(), since there is info about nanargmin and 
 nanargmax().

Didn't know about those myself.  I think the nan* functions just
haven't been added to the example list yet (which includes adding
relevant SeeAlso's).   If you use 'em, feel free to go ahead and edit
the page.  It's a wiki after all.

--bb
___
Numpy-discussion mailing list
[EMAIL PROTECTED]
http://projects.scipy.org/mailman/listinfo/numpy-discussion