Op_zeros


Classes

class  op_zeros
 generate matrix/vector with all elements set to zero More...

Functions

template<typename eT >
static void op_zeros::apply (Mat< eT > &out, const Op< Mat< eT >, op_zeros > &in)
template<typename eT >
static void op_zeros::apply (Mat< eT > &out, const Op< Col< eT >, op_zeros > &in)
template<typename eT >
static void op_zeros::apply (Mat< eT > &out, const Op< Row< eT >, op_zeros > &in)
template<typename eT >
static void op_zeros::apply (Col< eT > &out, const Op< Col< eT >, op_zeros > &in)
template<typename eT >
static void op_zeros::apply (Row< eT > &out, const Op< Row< eT >, op_zeros > &in)

Function Documentation

template<typename eT >
void op_zeros::apply ( Mat< eT > &  out,
const Op< Mat< eT >, op_zeros > &  in 
) [inline, static, inherited]

Definition at line 23 of file op_zeros_meat.hpp.

References Mat< eT >::zeros().

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   }

template<typename eT >
void op_zeros::apply ( Mat< eT > &  out,
const Op< Col< eT >, op_zeros > &  in 
) [inline, static, inherited]

Definition at line 38 of file op_zeros_meat.hpp.

References Mat< eT >::zeros().

00039   {
00040   arma_extra_debug_sigprint();
00041   
00042   out.zeros(in.aux_u32_a, 1);
00043   }

template<typename eT >
void op_zeros::apply ( Mat< eT > &  out,
const Op< Row< eT >, op_zeros > &  in 
) [inline, static, inherited]

Definition at line 50 of file op_zeros_meat.hpp.

References Mat< eT >::zeros().

00051   {
00052   arma_extra_debug_sigprint();
00053   
00054   out.zeros(1, in.aux_u32_a);
00055   }

template<typename eT >
void op_zeros::apply ( Col< eT > &  out,
const Op< Col< eT >, op_zeros > &  in 
) [inline, static, inherited]

Definition at line 62 of file op_zeros_meat.hpp.

References Col< eT >::zeros().

00063   {
00064   arma_extra_debug_sigprint();
00065   
00066   out.zeros(in.aux_u32_a);
00067   }

template<typename eT >
void op_zeros::apply ( Row< eT > &  out,
const Op< Row< eT >, op_zeros > &  in 
) [inline, static, inherited]

Definition at line 74 of file op_zeros_meat.hpp.

References Row< eT >::zeros().

00075   {
00076   arma_extra_debug_sigprint();
00077   
00078   out.zeros(in.aux_u32_a);
00079   }