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

Standard documentation for Sparsity.size:

 Get the size along a particular dimensions.

 size(self) -> (int,int)
 size(self, int axis) -> int

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

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

Implementation: https://github.com/casadi/casadi/blob/develop/casadi/core/sparsity.cpp#L157-L163

.......

::

 size(self, int axis)

Get the size along a particular dimensions.

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

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

Implementation: https://github.com/casadi/casadi/blob/develop/casadi/core/sparsity.cpp#L157-L163

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

.......

::

 size(self)

Get the shape.

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

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

Implementation: https://github.com/casadi/casadi/blob/develop/casadi/core/sparsity.cpp#L153-L155

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

Extra documentation

To edit, see writing tips.

Clone this wiki locally