Convex operators via optimization (OPT), Legendre-Fenchel transform (LFT)
[y, argmin] = opt_lft(f, df, domf, s, output)
Univariate function, continuous but (potentially) nonsmooth.
Univariate function: derivative of f.
Domain of the function f (set of points where the function is finite). Domains are stored as intervals I=[lb,ub] with ub<lb storing an empty set.
Vector of points at which to evaluate the LFT.
0: no output, 1: progress bar.
The values of the LFT evaluated at each x.
A point at which the LFT attains its minimum, for each x.
Computes the Legendre-Fenchel transform of f evaluated on vector s, giving the values y such that