<< plq_fitzinf0_direct | plq | plq_gpa >>

CCA (Computational Convex Analysis) >> plq > plq_function

# plq_function

Piecewise linear quadratic (plq) function description

### Description

A plq function is a piecewise function, where each piece is either a linear or a quadratic polynomial. It is stored as the matrix, where each row represents one piece of the function.

Note that singleton indicator functions are given in a special form such that [x(1),0,0,c(1)] = I_{x(1)}(x) + c(1).

### Examples

    plqAbs = [0,0,-1,0;%inf,0,1,0]; // The function y = |x|
    plqQuad = [%inf,1/5,-4/5,4/5];  // The function y = (x-2)^2 / 5 = (x^2 - 4*x + 4) / 5
    plq_plot(plqAbs, plqQuad);      // Plot the functions together

### See Also

- plq_add
- plq_build
- plq_check
- plq_clean
- plq_co
- plq_coDirect
- plq_coSplit
- plq_deconv_lft
- plq_diff
- plq_dom
- plq_eval
- plq_infconv_lft
- plq_isConvex
- plq_isEqual
- plq_lft
- plq_max
- plq_me
- plq_me_max_scale
- plq_min
- plq_minPt
- plq_gpa
- plq_pa
- plq_pa_mu
- plq_plot
- plq_plotMultiple
- plq_plotpa
- plq_plotpa_lambdaSet
- plq_plotpa_muSet
- plq_proj
- plq_scalar

### Authors

`Bryan Gardiner`, University of British Columbia, BC, Canada

<< plq_fitzinf0_direct | plq | plq_gpa >>