Functions | |
const Op< mat, op_zeros > | zeros (const u32 n_rows, const u32 n_cols) |
Generate a dense matrix with all elements set to zero. | |
const Op< colvec, op_zeros > | zeros (const u32 n_elem) |
Generate a vector with all elements set to zero. | |
const OpCube< cube, op_zeros > | zeros (const u32 n_rows, const u32 n_cols, const u32 n_slices) |
Generate a dense cube with all elements set to zero. |
Generate a dense matrix with all elements set to zero.
Definition at line 35 of file fn_zeros.hpp.
00036 { 00037 arma_extra_debug_sigprint(); 00038 00039 arma_type_check<is_Mat<mat_type>::value == false>::apply(); 00040 00041 return Op<mat_type,op_zeros>(n_rows, n_cols, 'j'); 00042 }
Generate a vector with all elements set to zero.
Definition at line 61 of file fn_zeros.hpp.
00062 { 00063 arma_extra_debug_sigprint(); 00064 00065 arma_type_check< (is_Col<vec_type>::value == false) && (is_Row<vec_type>::value == false) >::apply(); 00066 00067 if(is_Row<vec_type>::value == true) 00068 { 00069 return Op<vec_type,op_zeros>(1, n_elem, 'j'); 00070 } 00071 else 00072 { 00073 return Op<vec_type,op_zeros>(n_elem, 1, 'j'); 00074 } 00075 }
const OpCube< cube_type, op_zeros > zeros | ( | const u32 | n_rows, | |
const u32 | n_cols, | |||
const u32 | n_slices | |||
) | [inline] |
Generate a dense cube with all elements set to zero.
Definition at line 100 of file fn_zeros.hpp.
00101 { 00102 arma_extra_debug_sigprint(); 00103 00104 arma_type_check<is_Cube<cube_type>::value == false>::apply(); 00105 00106 return OpCube<cube_type,op_zeros>(n_rows, n_cols, n_slices); 00107 }