Functions

fn_randu.hpp File Reference

Go to the source code of this file.

Functions

double randu ()
arma_inline const eOp< colvec,
eop_randu
randu (const u32 n_elem, const arma_Mat_Col_Row_only< colvec >::result *junk=0)
 Generate a vector with all elements set to random values in the [0,1] interval (uniform distribution).
template<typename vec_type >
arma_inline const eOp
< vec_type, eop_randu
randu (const u32 n_elem, const typename arma_Mat_Col_Row_only< vec_type >::result *junk=0)
arma_inline const eOp< mat,
eop_randu
randu (const u32 n_rows, const u32 n_cols, const arma_Mat_Col_Row_only< mat >::result *junk=0)
 Generate a dense matrix with all elements set to random values in the [0,1] interval (uniform distribution).
template<typename mat_type >
arma_inline const eOp
< mat_type, eop_randu
randu (const u32 n_rows, const u32 n_cols, const typename arma_Mat_Col_Row_only< mat_type >::result *junk=0)
arma_inline const eOpCube
< cube, eop_cube_randu
randu (const u32 n_rows, const u32 n_cols, const u32 n_slices, const arma_Cube_only< cube >::result *junk=0)
template<typename cube_type >
arma_inline const eOpCube
< cube_type, eop_cube_randu
randu (const u32 n_rows, const u32 n_cols, const u32 n_slices, const typename arma_Cube_only< cube_type >::result *junk=0)
arma_deprecated const eOp< mat,
eop_randu
rand (const u32 n_rows, const u32 n_cols)
 Generate a dense matrix with all elements set to random values in the [0,1] interval (uniform distribution).
arma_deprecated const eOpCube
< cube, eop_cube_randu
rand (const u32 n_rows, const u32 n_cols, const u32 n_slices)
arma_deprecated const eOp
< colvec, eop_randu
rand (const u32 n_elem)
 Generate a vector with all elements set to random values in the [0,1] interval (uniform distribution).