Functions | |
arma_inline const eOp< colvec, eop_ones_full > | ones (const u32 n_elem, const arma_Mat_Col_Row_only< colvec >::result *junk=0) |
Generate a vector with all elements set to one. | |
template<typename vec_type > | |
arma_inline const eOp < vec_type, eop_ones_full > | ones (const u32 n_elem, const typename arma_Mat_Col_Row_only< vec_type >::result *junk=0) |
arma_inline const eOp< mat, eop_ones_full > | ones (const u32 n_rows, const u32 n_cols, const arma_Mat_Col_Row_only< mat >::result *junk=0) |
Delayed generation of a dense matrix with all elements set to one. | |
template<typename mat_type > | |
arma_inline const eOp < mat_type, eop_ones_full > | ones (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_ones_full > | ones (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_ones_full > | ones (const u32 n_rows, const u32 n_cols, const u32 n_slices, const typename arma_Cube_only< cube_type >::result *junk=0) |
arma_inline const eOp< mat, eop_ones_diag > | eye (const u32 n_rows, const u32 n_cols, const arma_Mat_Col_Row_only< mat >::result *junk=0) |
Delayed generation of a diagonal matrix with the diagonal elements set to one. | |
template<typename mat_type > | |
arma_inline const eOp < mat_type, eop_ones_diag > | eye (const u32 n_rows, const u32 n_cols, const typename arma_Mat_Col_Row_only< mat_type >::result *junk=0) |
arma_inline const eOp<colvec, eop_ones_full> ones | ( | const u32 | n_elem, | |
const arma_Mat_Col_Row_only< colvec >::result * | junk = 0 | |||
) |
Generate a vector with all elements set to one.
Definition at line 25 of file fn_ones.hpp.
00026 { 00027 arma_extra_debug_sigprint(); 00028 00029 return eOp<colvec, eop_ones_full>(n_elem, 1); 00030 }
arma_inline const eOp<vec_type, eop_ones_full> ones | ( | const u32 | n_elem, | |
const typename arma_Mat_Col_Row_only< vec_type >::result * | junk = 0 | |||
) | [inline] |
Definition at line 37 of file fn_ones.hpp.
00038 { 00039 arma_extra_debug_sigprint(); 00040 00041 if(is_Row<vec_type>::value == true) 00042 { 00043 return eOp<vec_type, eop_ones_full>(1, n_elem); 00044 } 00045 else 00046 { 00047 return eOp<vec_type, eop_ones_full>(n_elem, 1); 00048 } 00049 }
arma_inline const eOp<mat, eop_ones_full> ones | ( | const u32 | n_rows, | |
const u32 | n_cols, | |||
const arma_Mat_Col_Row_only< mat >::result * | junk = 0 | |||
) |
Delayed generation of a dense matrix with all elements set to one.
Definition at line 56 of file fn_ones.hpp.
00057 { 00058 arma_extra_debug_sigprint(); 00059 00060 return eOp<mat, eop_ones_full>(n_rows, n_cols); 00061 }
arma_inline const eOp<mat_type, eop_ones_full> ones | ( | const u32 | n_rows, | |
const u32 | n_cols, | |||
const typename arma_Mat_Col_Row_only< mat_type >::result * | junk = 0 | |||
) | [inline] |
Definition at line 68 of file fn_ones.hpp.
00069 { 00070 arma_extra_debug_sigprint(); 00071 00072 arma_type_check<is_Mat<mat_type>::value == false>::apply(); 00073 00074 return eOp<mat_type, eop_ones_full>(n_rows, n_cols); 00075 }
arma_inline const eOpCube<cube, eop_cube_ones_full> ones | ( | const u32 | n_rows, | |
const u32 | n_cols, | |||
const u32 | n_slices, | |||
const arma_Cube_only< cube >::result * | junk = 0 | |||
) |
Definition at line 81 of file fn_ones.hpp.
00082 { 00083 arma_extra_debug_sigprint(); 00084 00085 return eOpCube<cube, eop_cube_ones_full>(n_rows, n_cols, n_slices); 00086 }
arma_inline const eOpCube<cube_type, eop_cube_ones_full> ones | ( | 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 93 of file fn_ones.hpp.
00094 { 00095 arma_extra_debug_sigprint(); 00096 00097 arma_type_check<is_Cube<cube_type>::value == false>::apply(); 00098 00099 return eOpCube<cube_type, eop_cube_ones_full>(n_rows, n_cols, n_slices); 00100 }
arma_inline const eOp<mat, eop_ones_diag> eye | ( | const u32 | n_rows, | |
const u32 | n_cols, | |||
const arma_Mat_Col_Row_only< mat >::result * | junk = 0 | |||
) |
Delayed generation of a diagonal matrix with the diagonal elements set to one.
Definition at line 107 of file fn_ones.hpp.
00108 { 00109 arma_extra_debug_sigprint(); 00110 00111 return eOp<mat, eop_ones_diag>(n_rows, n_cols); 00112 }
arma_inline const eOp<mat_type, eop_ones_diag> eye | ( | const u32 | n_rows, | |
const u32 | n_cols, | |||
const typename arma_Mat_Col_Row_only< mat_type >::result * | junk = 0 | |||
) | [inline] |
Definition at line 119 of file fn_ones.hpp.
00120 { 00121 arma_extra_debug_sigprint(); 00122 00123 arma_type_check<is_Mat_only<mat_type>::value == false>::apply(); 00124 00125 return eOp<mat_type, eop_ones_diag>(n_rows, n_cols); 00126 }