This is a cpp function used for R function sl0fused.
sl0fused_c(y, T0, T02, max_steps)
Response sequence to be fitted.
Number of knots in the piecewise constant(breaks in the derivative).
Number of non-zero values in fitted coefficient.
The maximum number of steps for the algorithm to take before termination.
Fitted value.
Dual coefficient.
Primal coefficient.
Dual coefficient.
Wen,C., Wang, X., Shen, Y., and Zhang, A. (2017). "L0 trend filtering", technical report.