-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Closed
Description
I noticed that maximum(i for i = 1:10)
works but argmax(i for i=1:10)
does not. This seems inconsistent.
Edit: I am proposing that argmax(f(x) for x ∈ itr)
should work and return an x
in itr
that maximizes f(x)
, which is quite literally the mathematical definition of argmax. I have proposed a simple way to implement this here.
(originally proposed here)
Nosferican and tawheeler
Metadata
Metadata
Assignees
Labels
No labels