Functions | |
const Op< mat, op_ones_full > | ones (const u32 n_rows, const u32 n_cols) |
Delayed generation of a dense matrix with all elements set to one. | |
const Op< colvec, op_ones_full > | ones (const u32 n_elem) |
Generate a vector with all elements set to one. | |
const Op< mat, op_ones_diag > | eye (const u32 n_rows, const u32 n_cols) |
Delayed generation of a diagonal matrix with the diagonal elements set to one. |
const Op< mat_type, op_ones_full > ones | ( | const u32 | n_rows, | |
const u32 | n_cols | |||
) | [inline] |
Delayed generation of a dense matrix with all elements set to one.
Definition at line 25 of file fn_ones.hpp.
00026 { 00027 arma_extra_debug_sigprint(); 00028 00029 return Op<mat,op_ones_full>(n_rows, n_cols, 'j'); 00030 }
const Op< vec_type, op_ones_full > ones | ( | const u32 | n_elem | ) | [inline] |
Generate a vector with all elements set to one.
Definition at line 51 of file fn_ones.hpp.
00052 { 00053 arma_extra_debug_sigprint(); 00054 00055 return Op<colvec, op_ones_full>(n_elem, 1, 'j'); 00056 }
const Op< mat_type, op_ones_diag > eye | ( | const u32 | n_rows, | |
const u32 | n_cols | |||
) | [inline] |
Delayed generation of a diagonal matrix with the diagonal elements set to one.
Definition at line 77 of file fn_ones.hpp.
Referenced by auxlib::lu().
00078 { 00079 arma_extra_debug_sigprint(); 00080 00081 return Op<mat,op_ones_diag>(n_rows, n_cols, 'j'); 00082 }