Functions | |
const Op< mat, op_randn > | randn (const u32 n_rows, const u32 n_cols) |
Generate a dense matrix with all elements set to random values with a gaussian distribution (zero mean, unit variance). | |
const Op< colvec, op_randn > | randn (const u32 n_elem) |
Generate a vector with all elements set to random values with a gaussian distribution (zero mean, unit variance). | |
const OpCube< cube, op_randn > | randn (const u32 n_rows, const u32 n_cols, const u32 n_slices) |
Generate a dense cube with all elements set to random values with a gaussian distribution (zero mean, unit variance). |
Generate a dense matrix with all elements set to random values with a gaussian distribution (zero mean, unit variance).
Definition at line 36 of file fn_randn.hpp.
00037 { 00038 arma_extra_debug_sigprint(); 00039 00040 arma_type_check<is_Mat<mat_type>::value == false>::apply(); 00041 00042 return Op<mat_type,op_randn>(n_rows, n_cols, 'j'); 00043 }
Generate a vector with all elements set to random values with a gaussian distribution (zero mean, unit variance).
Definition at line 62 of file fn_randn.hpp.
00063 { 00064 arma_extra_debug_sigprint(); 00065 00066 arma_type_check< (is_Col<vec_type>::value == false) && (is_Row<vec_type>::value == false) >::apply(); 00067 00068 if(is_Row<vec_type>::value == true) 00069 { 00070 return Op<vec_type,op_randn>(1, n_elem, 'j'); 00071 } 00072 else 00073 { 00074 return Op<vec_type,op_randn>(n_elem, 1, 'j'); 00075 } 00076 }
const OpCube< cube_type, op_randn > randn | ( | const u32 | n_rows, | |
const u32 | n_cols, | |||
const u32 | n_slices | |||
) | [inline] |
Generate a dense cube with all elements set to random values with a gaussian distribution (zero mean, unit variance).
Definition at line 101 of file fn_randn.hpp.
00102 { 00103 arma_extra_debug_sigprint(); 00104 00105 arma_type_check<is_Cube<cube_type>::value == false>::apply(); 00106 00107 return OpCube<cube_type,op_randn>(n_rows, n_cols, n_slices); 00108 }