argmax

Alexandre Fayolle alf at merlin.fayauffre.org
Thu Jun 1 11:50:55 EDT 2006


Le 01-06-2006, David <aisaac0 at verizon.net> nous disait:
> 1. Why is there no argmax built-in?
> (This would return the index of the largest element in a sequence.)

You'll get argmin and argmax in Numeric and its descendants (numarray
and numpy). 


-- 
Alexandre Fayolle                              LOGILAB, Paris (France)
Formations Python, Zope, Plone, Debian:  http://www.logilab.fr/formations
Développement logiciel sur mesure:       http://www.logilab.fr/services
Python et calcul scientifique:           http://www.logilab.fr/science



More information about the Python-list mailing list