-
Notifications
You must be signed in to change notification settings - Fork 358
L_1d1
Joris Gillis edited this page Apr 4, 2023
·
3 revisions
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
To edit, see writing tips.