Fn_zeros

Functions

arma_inline const eOp< colvec,
eop_zeros
zeros (const u32 n_elem, const arma_Mat_Col_Row_only< colvec >::result *junk=0)
 Generate a vector with all elements set to zero.
template<typename vec_type >
arma_inline const eOp
< vec_type, eop_zeros
zeros (const u32 n_elem, const typename arma_Mat_Col_Row_only< vec_type >::result *junk=0)
arma_inline const eOp< mat,
eop_zeros
zeros (const u32 n_rows, const u32 n_cols, const arma_Mat_Col_Row_only< mat >::result *junk=0)
 Generate a dense matrix with all elements set to zero.
template<typename mat_type >
arma_inline const eOp
< mat_type, eop_zeros
zeros (const u32 n_rows, const u32 n_cols, const typename arma_Mat_Col_Row_only< mat_type >::result *junk=0)
arma_inline const eOpCube
< cube, eop_cube_zeros
zeros (const u32 n_rows, const u32 n_cols, const u32 n_slices, const arma_Cube_only< cube >::result *junk=0)
template<typename cube_type >
arma_inline const eOpCube
< cube_type, eop_cube_zeros
zeros (const u32 n_rows, const u32 n_cols, const u32 n_slices, const typename arma_Cube_only< cube_type >::result *junk=0)

Function Documentation

arma_inline const eOp<colvec, eop_zeros> zeros ( const u32  n_elem,
const arma_Mat_Col_Row_only< colvec >::result *  junk = 0 
)

Generate a vector with all elements set to zero.

Definition at line 24 of file fn_zeros.hpp.

00025   {
00026   arma_extra_debug_sigprint();
00027   
00028   return eOp<colvec, eop_zeros>(n_elem, 1);
00029   }

template<typename vec_type >
arma_inline const eOp<vec_type, eop_zeros> zeros ( const u32  n_elem,
const typename arma_Mat_Col_Row_only< vec_type >::result *  junk = 0 
) [inline]

Definition at line 36 of file fn_zeros.hpp.

00037   {
00038   arma_extra_debug_sigprint();
00039   
00040   if(is_Row<vec_type>::value == true)
00041     {
00042     return eOp<vec_type, eop_zeros>(1, n_elem);
00043     }
00044   else
00045     {
00046     return eOp<vec_type, eop_zeros>(n_elem, 1);
00047     }
00048   }

arma_inline const eOp<mat, eop_zeros> zeros ( const u32  n_rows,
const u32  n_cols,
const arma_Mat_Col_Row_only< mat >::result *  junk = 0 
)

Generate a dense matrix with all elements set to zero.

Definition at line 55 of file fn_zeros.hpp.

00056   {
00057   arma_extra_debug_sigprint();
00058   
00059   return eOp<mat, eop_zeros>(n_rows, n_cols);
00060   }

template<typename mat_type >
arma_inline const eOp<mat_type, eop_zeros> zeros ( const u32  n_rows,
const u32  n_cols,
const typename arma_Mat_Col_Row_only< mat_type >::result *  junk = 0 
) [inline]

Definition at line 67 of file fn_zeros.hpp.

00068   {
00069   arma_extra_debug_sigprint();
00070   
00071   arma_type_check<is_Mat<mat_type>::value == false>::apply();
00072   
00073   return eOp<mat_type, eop_zeros>(n_rows, n_cols);
00074   }

arma_inline const eOpCube<cube, eop_cube_zeros> zeros ( const u32  n_rows,
const u32  n_cols,
const u32  n_slices,
const arma_Cube_only< cube >::result *  junk = 0 
)

Definition at line 80 of file fn_zeros.hpp.

00081   {
00082   arma_extra_debug_sigprint();
00083   
00084   return eOpCube<cube, eop_cube_zeros>(n_rows, n_cols, n_slices);
00085   }

template<typename cube_type >
arma_inline const eOpCube<cube_type, eop_cube_zeros> zeros ( const u32  n_rows,
const u32  n_cols,
const u32  n_slices,
const typename arma_Cube_only< cube_type >::result *  junk = 0 
) [inline]

Definition at line 92 of file fn_zeros.hpp.

00093   {
00094   arma_extra_debug_sigprint();
00095   
00096   arma_type_check<is_Cube<cube_type>::value == false>::apply();
00097   
00098   return eOpCube<cube_type, eop_cube_zeros>(n_rows, n_cols, n_slices);
00099   }