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

Standard documentation for MX.erase:

 [INTERNAL] 

::

 erase(self, [int] rr, bool ind1)
 erase(self, [int] rr, [int] cc, bool ind1)

Erase a submatrix (leaving structural zeros in its place)

Erase elements of a matrix

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

Doc source: https://github.com/casadi/casadi/blob/develop/casadi/core/mx.hpp#L204

Implementation: https://github.com/casadi/casadi/blob/develop/casadi/core/mx.cpp#L604-L616

.......

::

 erase(self, [int] rr, bool ind1)

[INTERNAL] Erase a submatrix (leaving structural zeros in its place)

Erase elements of a matrix

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

Doc source: https://github.com/casadi/casadi/blob/develop/casadi/core/mx.hpp#L204

Implementation: https://github.com/casadi/casadi/blob/develop/casadi/core/mx.cpp#L604-L616

.............

.......

::

 erase(self, [int] rr, [int] cc, bool ind1)

[INTERNAL] Erase a submatrix (leaving structural zeros in its place)

Erase rows and/or columns of a matrix

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

Doc source: https://github.com/casadi/casadi/blob/develop/casadi/core/mx.hpp#L196

Implementation: https://github.com/casadi/casadi/blob/develop/casadi/core/mx.cpp#L590-L602

.............

Extra documentation

To edit, see writing tips.

Clone this wiki locally