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

Standard documentation for Sparsity.add_nz:

 Get the index of a non-zero element.

 add_nz(self, int rr, int cc) -> int

Add the element if it does not exist and copy object if it's not unique

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

Doc source: https://github.com/casadi/casadi/blob/develop/casadi/core/sparsity.hpp#L489

Implementation: https://github.com/casadi/casadi/blob/develop/casadi/core/sparsity.cpp#L195-L240

Extra documentation

To edit, see writing tips.

Clone this wiki locally