View source: R/095_atoms_quad_form.R
| quad_form | R Documentation |
When x is constant, returns t(Conj(x)) %*% P %*% x
(affine in P).
When P is constant, returns a QuadForm atom (quadratic in x).
At least one of x or P must be constant.
quad_form(x, P, assume_PSD = FALSE)
x |
An Expression (vector) |
P |
An Expression (square matrix, symmetric/Hermitian) |
assume_PSD |
If TRUE, assume P is PSD without checking (only when P is constant). |
A QuadForm atom or an affine Expression
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.