Skip to content
Joris Gillis edited this page Apr 4, 2023 · 3 revisions

Standard documentation for is_quadratic:

 Is expr quadratic in var?

::

 is_quadratic(DM expr, DM var) -> bool
 is_quadratic(SX expr, SX var) -> bool
 is_quadratic(MX expr, MX var) -> bool

False negatives are possible (an expression may not be recognised as

quadratic while it really is), false positives not.

Extra doc: https://github.com/casadi/casadi/wiki/L_1d1

Doc source: https://github.com/casadi/casadi/blob/develop/casadi/core/generic_matrix.hpp#L906

Implementation: https://github.com/casadi/casadi/blob/develop/casadi/core/generic_matrix.hpp#L906-L908

Extra documentation

To edit, see writing tips.

Clone this wiki locally