30 typedef typename T1::elem_type eT;
41 out.
set_size(X_n_rows * copies_per_row, X_n_cols * copies_per_col);
46 if( (out_n_rows > 0) && (out_n_cols > 0) )
48 for(
uword col = 0; col < out_n_cols; col += X_n_cols)
50 for(
uword row = 0; row < out_n_rows; row += X_n_rows)
52 out.
submat(row, col, row+X_n_rows-1, col+X_n_cols-1) = X;
void set_size(const uword in_elem)
change the matrix to have user specified dimensions (data is not preserved)
arma_inline subview< eT > submat(const uword in_row1, const uword in_col1, const uword in_row2, const uword in_col2)
creation of subview (submatrix)
const uword n_cols
number of columns in the matrix (read-only)
arma_aligned uword aux_uword_b
storage of auxiliary data, uword format
const uword n_rows
number of rows in the matrix (read-only)
arma_aligned const T1 & m
storage of reference to the operand (eg. a matrix)
static void apply(Mat< typename T1::elem_type > &out, const Op< T1, op_repmat > &in)
implementation of the 'repeat matrix' operation, used for constructing matrices
#define arma_extra_debug_sigprint
arma_aligned uword aux_uword_a
storage of auxiliary data, uword format