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

Standard documentation for DM_rand,SX_rand:

 [INTERNAL] 

::

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

Create a matrix with uniformly distributed random numbers.

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

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

.......

::

 rand(Sparsity sp)

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

.......

::

 rand(int nrow, int ncol)

[INTERNAL] Create a matrix with uniformly distributed random numbers.

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

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

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

.......

::

 rand((int,int) rc)

[INTERNAL] Create a matrix with uniformly distributed random numbers.

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

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

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

 [INTERNAL] 

::

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

Create a matrix with uniformly distributed random numbers.

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

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

.......

::

 rand(Sparsity sp)

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

.......

::

 rand(int nrow, int ncol)

[INTERNAL] Create a matrix with uniformly distributed random numbers.

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

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

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

.......

::

 rand((int,int) rc)

[INTERNAL] Create a matrix with uniformly distributed random numbers.

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

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

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

Extra documentation

To edit, see writing tips.

Clone this wiki locally