Skip to content
Joris Gillis edited this page Sep 16, 2022 · 3 revisions

Standard documentation for DM.export_code,SX.export_code:

 [INTERNAL] 

 export_code(self, str lang, dict options)

Export matrix in specific language.

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: 'm')
 *   indent_level: Level of indentation (default: 0)
 *   spoof_zero: Replace numerical zero by a 1e-200 (default: false)
 *               might be needed for matlab sparse construct,
 *               which doesn't allow numerical zero
 * 

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

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

Extra documentation

To edit, see writing tips.

Clone this wiki locally