cr.sparse.opt.smooth_quad_matrix

cr.sparse.opt.smooth_quad_matrix(P=None, q=None, r=None)[source]

Quadratic function and its gradient \(f(x) = \frac{1}{2} x^T P x + \langle q, x \rangle + r\)