//! More...
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.
{
arma_extra_debug_sigprint();
return eOp<colvec, eop_ones_full>(n_elem, 1);
}
| 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 | |||
| ) |
Definition at line 37 of file fn_ones.hpp.
{
arma_extra_debug_sigprint();
if(is_Row<vec_type>::value == true)
{
return eOp<vec_type, eop_ones_full>(1, n_elem);
}
else
{
return eOp<vec_type, eop_ones_full>(n_elem, 1);
}
}
| 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.
{
arma_extra_debug_sigprint();
return eOp<mat, eop_ones_full>(n_rows, n_cols);
}
| 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 | |||
| ) |
Definition at line 68 of file fn_ones.hpp.
{
arma_extra_debug_sigprint();
arma_type_check<is_Mat<mat_type>::value == false>::apply();
return eOp<mat_type, eop_ones_full>(n_rows, n_cols);
}
| 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.
{
arma_extra_debug_sigprint();
return eOpCube<cube, eop_cube_ones_full>(n_rows, n_cols, n_slices);
}
| 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 | |||
| ) |
Definition at line 93 of file fn_ones.hpp.
{
arma_extra_debug_sigprint();
arma_type_check<is_Cube<cube_type>::value == false>::apply();
return eOpCube<cube_type, eop_cube_ones_full>(n_rows, n_cols, n_slices);
}
| 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.
{
arma_extra_debug_sigprint();
return eOp<mat, eop_ones_diag>(n_rows, n_cols);
}
| 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 | |||
| ) |
Definition at line 119 of file fn_ones.hpp.
{
arma_extra_debug_sigprint();
arma_type_check<is_Mat_only<mat_type>::value == false>::apply();
return eOp<mat_type, eop_ones_diag>(n_rows, n_cols);
}