We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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
To edit, see writing tips.