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

Standard documentation for offset:

 Helper function, get offsets corresponding to a vector of matrices.

::

 offset([Sparsity] v, bool vert) -> [int]
 offset([DM] v, bool vert) -> [int]
 offset([SX] v, bool vert) -> [int]
 offset([MX] v, bool vert) -> [int]

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

Doc source: https://github.com/casadi/casadi/blob/develop/casadi/core/sparsity_interface.hpp#L150

Implementation: https://github.com/casadi/casadi/blob/develop/casadi/core/sparsity_interface.hpp#L150-L152

Extra documentation

To edit, see writing tips.

Clone this wiki locally