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

Standard documentation for Sparsity.colind:

 Get a reference to the colindex of column cc (see class description)

 colind(self) -> [int]
 colind(self, int cc) -> int

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

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

Implementation: https://github.com/casadi/casadi/blob/develop/casadi/core/sparsity.cpp#L181-L187

.......

::

 colind(self)

Get the column index for each column.

Together with the row-vector, one obtains the sparsity pattern in the

column compressed format.

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

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

Implementation: https://github.com/casadi/casadi/blob/develop/casadi/core/sparsity.cpp#L340-L342

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

.......

::

 colind(self, int cc)

Get a reference to the colindex of column cc (see class description)

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

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

Implementation: https://github.com/casadi/casadi/blob/develop/casadi/core/sparsity.cpp#L181-L187

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

Extra documentation

To edit, see writing tips.

Clone this wiki locally