Closed
Description
With the rename to argmax, and dims now a kwarg, it seems very tempting to me to define a 2-arg flavor, argmax(f, itr)
, where itr
is an iterable subset of the domain of f
. This would return an x
in itr
that maximizes f(x)
, which is quite literally the mathematical definition of argmax.
(originally proposed here)
Edit: Previous wording may have been confusing, so I have attempted to improve it.