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

Standard documentation for Sparsity.row:

 Get the row of a non-zero element.

 row(self) -> [int]
 row(self, int el) -> int

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

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

Implementation: https://github.com/casadi/casadi/blob/develop/casadi/core/sparsity.cpp#L173-L179

.......

::

 row(self)

Get the row for each non-zero entry.

Together with the column-vector, this vector gives the sparsity of the

matrix in sparse triplet format, and together with the colind vector, one obtains the sparsity in column compressed format.

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

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

Implementation: https://github.com/casadi/casadi/blob/develop/casadi/core/sparsity.cpp#L348-L350

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

.......

::

 row(self, int el)

Get the row of a non-zero element.

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

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

Implementation: https://github.com/casadi/casadi/blob/develop/casadi/core/sparsity.cpp#L173-L179

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

Extra documentation

To edit, see writing tips.

Clone this wiki locally