L_1d3
Joris Gillis edited this page Apr 4, 2023
·
3 revisions
Recognizes linear form in vector expression.
::
linear_coeff(DM ex, DM arg, bool check) -> (DM OUTPUT1, DM OUTPUT2) linear_coeff(SX ex, SX arg, bool check) -> (SX OUTPUT1, SX OUTPUT2) linear_coeff(MX ex, MX arg, bool check) -> (MX OUTPUT1, MX OUTPUT2)
A x + b
check[in]: When true (default)m, A is checked to be independent of x. Provided to deal with false positive dependency checks.
Extra doc: https://github.com/casadi/casadi/wiki/L_1d3
Doc source: https://github.com/casadi/casadi/blob/develop/casadi/core/generic_matrix.hpp#L933
Implementation: https://github.com/casadi/casadi/blob/develop/casadi/core/generic_matrix.hpp#L933-L936
To edit, see writing tips.