-
Notifications
You must be signed in to change notification settings - Fork 372
L_dj
Joris Gillis edited this page Sep 16, 2022
·
2 revisions
Export matrix in specific language. export_code(self, str lang, dict options)
lang: only 'matlab' supported for now
::
* options: * inline: Indicates if you want everything on a single line (default: False) * name: Name of exported variable (default: 'sp') * as_matrix: Matlab does not have a sparsity object. (default: false) * With this option true, a numeric matrix will be constructed *
Extra doc: https://github.com/casadi/casadi/wiki/L_dj
Doc source: https://github.com/casadi/casadi/blob/develop/casadi/core/sparsity.hpp#L1034
Implementation: https://github.com/casadi/casadi/blob/develop/casadi/core/sparsity.cpp#L754-L757
To edit, see writing tips.