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

Standard documentation for Sparsity.nnz_lower:

 Number of non-zeros in the lower triangular half,.

 nnz_lower(self, bool strictly) -> int

i.e. the number of elements (i, j) with j<=i

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

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

Implementation: https://github.com/casadi/casadi/blob/develop/casadi/core/sparsity.cpp#L328-L330

Extra documentation

To edit, see writing tips.

Clone this wiki locally