fn_zeros.hpp
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 inline
00022 const Op<mat, op_zeros>
00023 zeros(const u32 n_rows, const u32 n_cols)
00024 {
00025 arma_extra_debug_sigprint();
00026
00027 return Op<mat, op_zeros>(n_rows, n_cols, 'j');
00028 }
00029
00030
00031
00032 template<typename mat_type>
00033 inline
00034 const Op<mat_type,op_zeros>
00035 zeros(const u32 n_rows, const u32 n_cols)
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 }
00043
00044
00045
00046
00047 inline
00048 const Op<colvec, op_zeros>
00049 zeros(const u32 n_elem)
00050 {
00051 arma_extra_debug_sigprint();
00052
00053 return Op<colvec, op_zeros>(n_elem, 1, 'j');
00054 }
00055
00056
00057
00058 template<typename vec_type>
00059 inline
00060 const Op<vec_type,op_zeros>
00061 zeros(const u32 n_elem)
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 return Op<vec_type,op_zeros>(n_elem, 0, 'j');
00068 }
00069
00070
00071
00072