argmin

@safe pure
argmin
(
alias fun
Range
)
(
in Range r
)
if (
isInputRange!Range &&
is(typeof(fun(r.front) < fun(r.front)) == bool)
)

Return Value

Type: auto

Element in r that minimizes fun. LaTeX: \underset{x}{\arg\min}

Meta