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). |
arma_scalar_only< eT >::result randu | ( | ) | [inline] |
Definition at line 32 of file fn_randu.hpp.
00033 { 00034 return eT(eop_aux_randu<eT>()); 00035 }
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).
Definition at line 42 of file fn_randu.hpp.
00043 { 00044 arma_extra_debug_sigprint(); 00045 00046 return eOp<colvec, eop_randu>(n_elem, 1); 00047 }
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 | |||
) | [inline] |
Definition at line 54 of file fn_randu.hpp.
00055 { 00056 arma_extra_debug_sigprint(); 00057 00058 if(is_Row<vec_type>::value == true) 00059 { 00060 return eOp<vec_type, eop_randu>(1, n_elem); 00061 } 00062 else 00063 { 00064 return eOp<vec_type, eop_randu>(n_elem, 1); 00065 } 00066 }
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).
Definition at line 73 of file fn_randu.hpp.
00074 { 00075 arma_extra_debug_sigprint(); 00076 00077 return eOp<mat, eop_randu>(n_rows, n_cols); 00078 }
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 | |||
) | [inline] |
Definition at line 85 of file fn_randu.hpp.
00086 { 00087 arma_extra_debug_sigprint(); 00088 00089 return eOp<mat_type, eop_randu>(n_rows, n_cols); 00090 }
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 | |||
) |
Definition at line 96 of file fn_randu.hpp.
00097 { 00098 arma_extra_debug_sigprint(); 00099 00100 return eOpCube<cube, eop_cube_randu>(n_rows, n_cols, n_slices); 00101 }
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 | |||
) | [inline] |
Definition at line 108 of file fn_randu.hpp.
00109 { 00110 arma_extra_debug_sigprint(); 00111 00112 return eOpCube<cube_type, eop_cube_randu>(n_rows, n_cols, n_slices); 00113 }
arma_deprecated const eOp< mat_type, eop_randu > rand | ( | const u32 | n_rows, | |
const u32 | n_cols | |||
) | [inline] |
Generate a dense matrix with all elements set to random values in the [0,1] interval (uniform distribution).
Definition at line 154 of file fn_randu.hpp.
References arma_print().
Referenced by op_shuffle::apply(), eop_aux_randn< eT >::operator eT(), and eop_aux_randu< eT >::operator eT().
00155 { 00156 arma_extra_debug_sigprint(); 00157 00158 arma_type_check<is_Mat<mat_type>::value == false>::apply(); 00159 00160 arma_print("rand() is deprecated; please use randu() instead"); 00161 00162 return eOp<mat_type, eop_randu>(n_rows, n_cols); 00163 }
arma_deprecated const eOpCube< cube_type, eop_cube_randu > rand | ( | const u32 | n_rows, | |
const u32 | n_cols, | |||
const u32 | n_slices | |||
) | [inline] |
Definition at line 171 of file fn_randu.hpp.
References arma_print().
00172 { 00173 arma_extra_debug_sigprint(); 00174 00175 arma_type_check<is_Cube<cube_type>::value == false>::apply(); 00176 00177 arma_print("rand() is deprecated; please use randu() instead"); 00178 00179 return eOpCube<cube_type, eop_cube_randu>(n_rows, n_cols, n_slices); 00180 }
Generate a vector with all elements set to random values in the [0,1] interval (uniform distribution).
Definition at line 203 of file fn_randu.hpp.
References arma_print().
00204 { 00205 arma_extra_debug_sigprint(); 00206 00207 arma_print("rand() is deprecated; please use randu() instead"); 00208 00209 arma_type_check< (is_Col<vec_type>::value == false) && (is_Row<vec_type>::value == false) >::apply(); 00210 00211 if(is_Row<vec_type>::value == true) 00212 { 00213 return eOp<vec_type, eop_randu>(1, n_elem); 00214 } 00215 else 00216 { 00217 return eOp<vec_type, eop_randu>(n_elem, 1); 00218 } 00219 }