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

Standard documentation for expand:

 Expand the expression as a weighted sum (with constant weights)

::

 expand(DM ex) -> (DM OUTPUT1, DM OUTPUT2)
 expand(SX ex) -> (SX OUTPUT1, SX OUTPUT2)

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

Doc source: https://github.com/casadi/casadi/blob/develop/casadi/core/matrix_decl.hpp#L620

Implementation: https://github.com/casadi/casadi/blob/develop/casadi/core/matrix_decl.hpp#L620-L623

Extra documentation

To edit, see writing tips.

Clone this wiki locally