Creates a one-argument closure for optimizers and other APIs that expect an
objective function of a parameter vector alone.
Arguments
- f
A function whose first argument is a parameter value and whose
second argument is data.
- d
An object bound to the second argument of f.
Value
A function of one argument, p, that evaluates f(p, d).