31 Aug
2020
31 Aug
'20
9:16 a.m.
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