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

Standard documentation for reshape:

 Reshape the matrix.

::

 reshape(Sparsity a, (int,int) rc) -> Sparsity
 reshape(Sparsity a, Sparsity sp) -> Sparsity
 reshape(DM a, (int,int) rc) -> DM
 reshape(DM a, Sparsity sp) -> DM
 reshape(SX a, (int,int) rc) -> SX
 reshape(SX a, Sparsity sp) -> SX
 reshape(MX a, (int,int) rc) -> MX
 reshape(MX a, Sparsity sp) -> MX
 reshape(Sparsity a, int nrow, int ncol) -> Sparsity
 reshape(DM a, int nrow, int ncol) -> DM
 reshape(SX a, int nrow, int ncol) -> SX
 reshape(MX a, int nrow, int ncol) -> MX

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

Doc source: https://github.com/casadi/casadi/blob/develop/casadi/core/sparsity_interface.hpp#L370

Implementation: https://github.com/casadi/casadi/blob/develop/casadi/core/sparsity_interface.hpp#L370-L372

Extra documentation

To edit, see writing tips.

Clone this wiki locally