27 typedef typename T1::elem_type eT;
40 const bool alias = (&actual_out == &A);
42 Mat<eT>& out = alias ? B : actual_out;
44 out.
set_size(out_n_rows, out_n_cols);
46 if( (out_n_rows > A_n_rows) || (out_n_cols > A_n_cols) )
56 out.
submat(0, 0, end_row, end_col) = A.
submat(0, 0, end_row, end_col);
75 typedef typename T1::elem_type eT;
90 const bool alias = (&actual_out == &A);
92 Cube<eT>& out = alias ? B : actual_out;
94 out.
set_size(out_n_rows, out_n_cols, out_n_slices);
96 if( (out_n_rows > A_n_rows) || (out_n_cols > A_n_cols) || (out_n_slices > A_n_slices) )
105 const uword end_slice = (
std::min)(out_n_slices, A_n_slices) - 1;
107 out.
subcube(0, 0, 0, end_row, end_col, end_slice) = A.
subcube(0, 0, 0, end_row, end_col, end_slice);
void set_size(const uword in_elem)
change the matrix to have user specified dimensions (data is not preserved)
arma_inline subview_cube< eT > subcube(const uword in_row1, const uword in_col1, const uword in_slice1, const uword in_row2, const uword in_col2, const uword in_slice2)
creation of subview_cube (generic subcube)
arma_aligned uword aux_uword_b
storage of auxiliary data, uword format
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)
arma_aligned uword aux_uword_c
storage of auxiliary data, uword format
void set_size(const uword in_rows, const uword in_cols, const uword in_slices)
change the cube to have user specified dimensions (data is not preserved)
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_elem
number of elements in the matrix (read-only)
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)
arma_inline const Op< T1, op_min > min(const Base< typename T1::elem_type, T1 > &X, const uword dim=0)
Delayed 'minimum values' operation. The dimension, along which the minima are found, is set via 'dim'. For dim = 0, the minimum value of each column is found (i.e. searches by traversing across rows). For dim = 1, the minimum value of each row is found (i.e. searches by traversing across columns). The default is dim = 0.
const uword n_cols
number of columns in each slice (read-only)
static void apply(Mat< typename T1::elem_type > &out, const Op< T1, op_resize > &in)
#define arma_extra_debug_sigprint
Analog of the Op class, intended for cubes.
arma_aligned uword aux_uword_a
storage of auxiliary data, uword format
arma_aligned const T1 & m
storage of reference to the operand (e.g. a cube)
const uword n_elem
number of elements in the cube (read-only)
arma_aligned uword aux_uword_a
storage of auxiliary data, uword format
const uword n_slices
number of slices in the cube (read-only)
const uword n_rows
number of rows in each slice (read-only)