23 typename T1::elem_type
28 typedef typename T1::elem_type eT;
35 ea_type P = A.get_ea();
36 const uword n_elem = A.get_n_elem();
43 for(i=0, j=1; j<n_elem; i+=2, j+=2)
58 const uword n_rows = A.get_n_rows();
59 const uword n_cols = A.get_n_cols();
63 for(
uword col=0; col<n_cols; ++col)
65 for(
uword row=0; row<n_rows; ++row)
86 typedef typename T1::elem_type eT;
90 const uword n_elem = A.get_n_elem();
94 for(
uword i=0; i<n_elem; ++i)
108 template<
typename T1>
112 typename T1::elem_type
117 typedef typename T1::elem_type eT;
125 ea_type P = A.get_ea();
126 const uword n_elem = A.get_n_elem();
133 for(i=0, j=1; j<n_elem; i+=2, j+=2)
148 const uword n_rows = A.get_n_rows();
149 const uword n_cols = A.get_n_cols();
150 const uword n_slices = A.get_n_slices();
154 for(
uword slice=0; slice<n_slices; ++slice)
156 for(
uword col=0; col<n_cols; ++col)
158 for(
uword row=0; row<n_rows; ++row)
160 val += A.at(row,col,slice);
172 template<
typename eT>
185 for(
uword i=0; i<n_elem; ++i)
196 template<
typename eT>
213 for(
uword col=0; col<S_n_cols; ++col)
225 template<
typename eT>
247 for(i=start_col, j=start_col+1; j < end_col_p1; i+=2, j+=2)
265 template<
typename eT>
arma_aligned const T1 & m
storage of reference to the operand (eg. a matrix)
arma_inline const derived & get_ref() const
arma_aligned in_eT aux
storage of auxiliary data, using the element type as used by T1
arma_hot T1::elem_type accu(const Base< typename T1::elem_type, T1 > &X)
accumulate the elements of a matrix
arma_inline arma_warn_unused eT & at(const uword i)
linear element accessor (treats the matrix as a vector); no bounds check.
arma_aligned const Mat< eT > & m
arma_inline eT * colptr(const uword in_col)
#define arma_extra_debug_sigprint
Analog of the Base class, intended for cubes.
arma_inline const derived & get_ref() const
Class for storing data required to extract and set the diagonals of a matrix.
arma_hot static arma_pure eT accumulate(const eT *src, const uword n_elem)