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

Standard documentation for Sparsity.is_empty:

 Check if the sparsity is empty.

 is_empty(self, bool both) -> bool

A sparsity is considered empty if one of the dimensions is zero (or

optionally both dimensions)

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

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

Implementation: https://github.com/casadi/casadi/blob/develop/casadi/core/sparsity.cpp#L145-L147

Extra documentation

To edit, see writing tips.

Clone this wiki locally