Skip to content
Joris Gillis edited this page Sep 15, 2022 · 1 revision

Standard documentation for Sparsity_unit:

 Create the sparsity pattern for a unit vector of length n and a 

 unit(int n, int el) -> Sparsity

nonzero on.

position el *

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

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

Implementation: https://github.com/casadi/casadi/blob/develop/casadi/core/sparsity.cpp#L1065-L1070

Extra documentation

To edit, see writing tips.

Clone this wiki locally