argmax |
(function for equations) |
Usage: |
argmax0 (x0, x1, ... xn) argmax1 (x1, x2, ... xn) |
Definition: |
i s.t. (xi ⋝ xj) for all j |
Required: |
xi are unrestricted reals |
Returns the index (position in list) of the argument with the highest value. If there are several with the same highest value, then the index of the first occurrence will be returned. The first argument has index 0 if argmax0 is used, or index 1 if argmax1 is used.
At least one argument must be passed.
If you want the minimum value itself, rather than its index, instead use max.
See also argmin.
Examples: |
argmax0 (1, -6.6, 3.4, 1.26, 3.4) returns 2 |
|
argmax1 (5e3, -6.6, -3.4, 126) returns 1 |