Piecewise linear quadratic (plq), function differentiation
plqdf = plq_diff(plqf)
matrix. A PLQ function.
matrix. The PLQ function that is the derivative of plqf.
Computes the piecewise linear derivative of plqf as a PLQ function. An error will be raised if plqf is not differentiable.
This function runs in O(n) time, where n is the number of pieces in plqf.
Bryan Gardiner
, University of British Columbia, BC, Canada