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

Standard documentation for GenDM_ones,GenSX_ones,GenMX_ones:

 [INTERNAL] 

::

 ones(int nrow, int ncol) -> DM
 ones((int,int) rc) -> DM
 ones(Sparsity sp) -> DM

Create a dense matrix or a matrix with specified sparsity with all entries one.

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

Doc source: https://github.com/casadi/casadi/blob/develop/casadi/core/generic_matrix.hpp#L1100

Implementation: https://github.com/casadi/casadi/blob/develop/casadi/core/generic_matrix.hpp#L1100-L1102

.......

::

 ones(int nrow, int ncol)

[INTERNAL] Create a dense matrix or a matrix with specified sparsity with all entries one.

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

Doc source: https://github.com/casadi/casadi/blob/develop/casadi/core/generic_matrix.hpp#L1096

Implementation: https://github.com/casadi/casadi/blob/develop/casadi/core/generic_matrix.hpp#L1096-L1098

.............

.......

::

 ones((int,int) rc)

[INTERNAL] Create a dense matrix or a matrix with specified sparsity with all entries one.

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

Doc source: https://github.com/casadi/casadi/blob/develop/casadi/core/generic_matrix.hpp#L1100

Implementation: https://github.com/casadi/casadi/blob/develop/casadi/core/generic_matrix.hpp#L1100-L1102

.............

.......

::

 ones(Sparsity sp)

[INTERNAL] Create a dense matrix or a matrix with specified sparsity with all entries one.

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

Doc source: https://github.com/casadi/casadi/blob/develop/casadi/core/generic_matrix.hpp#L1099

Implementation: https://github.com/casadi/casadi/blob/develop/casadi/core/generic_matrix.hpp#L1099-L1099

.............

 [INTERNAL] 

::

 ones(int nrow, int ncol) -> SX
 ones((int,int) rc) -> SX
 ones(Sparsity sp) -> SX

Create a dense matrix or a matrix with specified sparsity with all entries one.

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

Doc source: https://github.com/casadi/casadi/blob/develop/casadi/core/generic_matrix.hpp#L1100

Implementation: https://github.com/casadi/casadi/blob/develop/casadi/core/generic_matrix.hpp#L1100-L1102

.......

::

 ones(int nrow, int ncol)

[INTERNAL] Create a dense matrix or a matrix with specified sparsity with all entries one.

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

Doc source: https://github.com/casadi/casadi/blob/develop/casadi/core/generic_matrix.hpp#L1096

Implementation: https://github.com/casadi/casadi/blob/develop/casadi/core/generic_matrix.hpp#L1096-L1098

.............

.......

::

 ones((int,int) rc)

[INTERNAL] Create a dense matrix or a matrix with specified sparsity with all entries one.

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

Doc source: https://github.com/casadi/casadi/blob/develop/casadi/core/generic_matrix.hpp#L1100

Implementation: https://github.com/casadi/casadi/blob/develop/casadi/core/generic_matrix.hpp#L1100-L1102

.............

.......

::

 ones(Sparsity sp)

[INTERNAL] Create a dense matrix or a matrix with specified sparsity with all entries one.

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

Doc source: https://github.com/casadi/casadi/blob/develop/casadi/core/generic_matrix.hpp#L1099

Implementation: https://github.com/casadi/casadi/blob/develop/casadi/core/generic_matrix.hpp#L1099-L1099

.............

 [INTERNAL] 

::

 ones(int nrow, int ncol) -> MX
 ones((int,int) rc) -> MX
 ones(Sparsity sp) -> MX

Create a dense matrix or a matrix with specified sparsity with all entries one.

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

Doc source: https://github.com/casadi/casadi/blob/develop/casadi/core/generic_matrix.hpp#L1100

Implementation: https://github.com/casadi/casadi/blob/develop/casadi/core/generic_matrix.hpp#L1100-L1102

.......

::

 ones(int nrow, int ncol)

[INTERNAL] Create a dense matrix or a matrix with specified sparsity with all entries one.

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

Doc source: https://github.com/casadi/casadi/blob/develop/casadi/core/generic_matrix.hpp#L1096

Implementation: https://github.com/casadi/casadi/blob/develop/casadi/core/generic_matrix.hpp#L1096-L1098

.............

.......

::

 ones((int,int) rc)

[INTERNAL] Create a dense matrix or a matrix with specified sparsity with all entries one.

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

Doc source: https://github.com/casadi/casadi/blob/develop/casadi/core/generic_matrix.hpp#L1100

Implementation: https://github.com/casadi/casadi/blob/develop/casadi/core/generic_matrix.hpp#L1100-L1102

.............

.......

::

 ones(Sparsity sp)

[INTERNAL] Create a dense matrix or a matrix with specified sparsity with all entries one.

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

Doc source: https://github.com/casadi/casadi/blob/develop/casadi/core/generic_matrix.hpp#L1099

Implementation: https://github.com/casadi/casadi/blob/develop/casadi/core/generic_matrix.hpp#L1099-L1099

.............

Extra documentation

To edit, see writing tips.

Clone this wiki locally