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

Standard documentation for Sparsity.export_code:

 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

Extra documentation

To edit, see writing tips.

Clone this wiki locally