fn_ones.hpp File Reference

Go to the source code of this file.

Functions

arma_inline const eOp< mat,
eop_ones_full
ones (const u32 n_rows, const u32 n_cols)
 Delayed generation of a dense matrix with all elements set to one.
arma_inline const eOpCube
< cube, eop_cube_ones_full
ones (const u32 n_rows, const u32 n_cols, const u32 n_slices)
arma_inline const eOp< colvec,
eop_ones_full
ones (const u32 n_elem)
 Generate a vector with all elements set to one.
arma_inline const eOp< mat,
eop_ones_diag
eye (const u32 n_rows, const u32 n_cols)
 Delayed generation of a diagonal matrix with the diagonal elements set to one.