On 31/08/2020 01:14, Christopher Barker wrote:
or use numpy:-)  (which is probably where the name "argmin" came from,
rather than "index_min")

https://en.wikipedia.org/wiki/Arg_max

not sure if numpy precedes my own first memory of these functions in the 1970's, but it's fairly obvious that numpy's argmin is not necessarily set valued which the mathematical use would suggest is the mathematical usage

Python 3.8.5 (default, Jul 27 2020, 08:42:51)
[GCC 10.1.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
>>> numpy.argmin([1,0,2,3,0,5,0])
1
>>>

this would be {1,4,6} if set valued
-boring-ly yrs-
Robin Becker
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/2SLG5OSM5R3Q24IM2XITI7GPTNSCRUCI/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to