-
Notifications
You must be signed in to change notification settings - Fork 384
L_cl
Joris Gillis edited this page Sep 16, 2022
·
2 revisions
Combine two sparsity patterns. combine(self, Sparsity y, bool f0x_is_zero, bool function0_is_zero) -> Sparsity
Returns the new sparsity pattern as well as a mapping with the same length as the number of non-zero elements The mapping matrix contains the arguments for each nonzero, the first bit indicates if the first argument is nonzero, the second bit indicates if the second argument is nonzero (note that none of, one of or both of the arguments can be nonzero)
Extra doc: https://github.com/casadi/casadi/wiki/L_cl
Doc source: https://github.com/casadi/casadi/blob/develop/casadi/core/sparsity.hpp#L588
Implementation: https://github.com/casadi/casadi/blob/develop/casadi/core/sparsity.cpp#L380-L383
To edit, see writing tips.