Functions | |
arma_inline const eOp< mat, eop_zeros > | zeros (const u32 n_rows, const u32 n_cols) |
Generate a dense matrix with all elements set to zero. | |
arma_inline const eOpCube < cube, eop_cube_zeros > | zeros (const u32 n_rows, const u32 n_cols, const u32 n_slices) |
arma_inline const eOp< colvec, eop_zeros > | zeros (const u32 n_elem) |
Generate a vector with all elements set to zero. |
Generate a dense matrix with all elements set to zero.
Definition at line 47 of file fn_zeros.hpp.
00048 { 00049 arma_extra_debug_sigprint(); 00050 00051 arma_type_check<is_Mat<mat_type>::value == false>::apply(); 00052 00053 return eOp<mat_type, eop_zeros>(n_rows, n_cols); 00054 }
arma_inline const eOpCube< cube_type, eop_cube_zeros > zeros | ( | const u32 | n_rows, | |
const u32 | n_cols, | |||
const u32 | n_slices | |||
) | [inline] |
Definition at line 61 of file fn_zeros.hpp.
00062 { 00063 arma_extra_debug_sigprint(); 00064 00065 arma_type_check<is_Cube<cube_type>::value == false>::apply(); 00066 00067 return eOpCube<cube_type, eop_cube_zeros>(n_rows, n_cols, n_slices); 00068 }
Generate a vector with all elements set to zero.
Definition at line 87 of file fn_zeros.hpp.
00088 { 00089 arma_extra_debug_sigprint(); 00090 00091 arma_type_check< (is_Col<vec_type>::value == false) && (is_Row<vec_type>::value == false) >::apply(); 00092 00093 if(is_Row<vec_type>::value == true) 00094 { 00095 return eOp<vec_type, eop_zeros>(1, n_elem); 00096 } 00097 else 00098 { 00099 return eOp<vec_type, eop_zeros>(n_elem, 1); 00100 } 00101 }