op_zeros_meat.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 template<typename eT>
00021 inline
00022 void
00023 op_zeros::apply(Mat<eT>& out, const Op<Mat<eT>,op_zeros>& in)
00024 {
00025 arma_extra_debug_sigprint();
00026
00027 const u32 n_rows = in.aux_u32_a;
00028 const u32 n_cols = (in.aux_u32_b > 0) ? in.aux_u32_b : 1;
00029
00030 out.zeros(n_rows, n_cols);
00031 }
00032
00033
00034
00035 template<typename eT>
00036 inline
00037 void
00038 op_zeros::apply(Mat<eT>& out, const Op<Col<eT>,op_zeros>& in)
00039 {
00040 arma_extra_debug_sigprint();
00041
00042 out.zeros(in.aux_u32_a, 1);
00043 }
00044
00045
00046
00047 template<typename eT>
00048 inline
00049 void
00050 op_zeros::apply(Mat<eT>& out, const Op<Row<eT>,op_zeros>& in)
00051 {
00052 arma_extra_debug_sigprint();
00053
00054 out.zeros(1, in.aux_u32_a);
00055 }
00056
00057
00058
00059 template<typename eT>
00060 inline
00061 void
00062 op_zeros::apply(Col<eT>& out, const Op<Col<eT>,op_zeros>& in)
00063 {
00064 arma_extra_debug_sigprint();
00065
00066 out.zeros(in.aux_u32_a);
00067 }
00068
00069
00070
00071 template<typename eT>
00072 inline
00073 void
00074 op_zeros::apply(Row<eT>& out, const Op<Row<eT>,op_zeros>& in)
00075 {
00076 arma_extra_debug_sigprint();
00077
00078 out.zeros(in.aux_u32_a);
00079 }
00080
00081
00082
00083
00084