Skip to content
Joris Gillis edited this page Apr 4, 2023 · 2 revisions

Standard documentation for sparsify:

 Make a matrix sparse by removing numerical zeros.

::

 sparsify(DM A, float tol) -> DM
 sparsify(SX A, float tol) -> SX

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

Doc source: https://github.com/casadi/casadi/blob/develop/casadi/core/matrix_decl.hpp#L613

Implementation: https://github.com/casadi/casadi/blob/develop/casadi/core/matrix_decl.hpp#L613-L615

Extra documentation

To edit, see writing tips.

Clone this wiki locally