73 typename T1::elem_type
79 typedef typename T1::elem_type eT;
105 template<
typename eT>
122 template<
typename eT>
137 template<
typename eT>
155 template<
typename eT>
170 template<
typename eT,
typename T1>
182 arma_debug_check( (X_n_elem == 0),
"mean(): given object has no elements" );
arma_inline const derived & get_ref() const
static eT direct_mean(const eT *const X, const uword N)
const uword n_elem
number of elements in the matrix (read-only)
arma_inline arma_warn_unused bool is_finite(const eT x, const typename arma_scalar_only< eT >::result *junk=0)
arma_hot T1::elem_type accu(const Base< typename T1::elem_type, T1 > &X)
accumulate the elements of a matrix
arma_inline const Op< T1, op_mean > mean(const Base< typename T1::elem_type, T1 > &X, const uword dim=0)
#define arma_extra_debug_print
arma_aligned const T1 & m
storage of reference to the operand (eg. a matrix)
Class for column vectors (matrices with only one column)
static eT direct_mean_robust(const eT *const X, const uword N)
arma_aligned const Mat< eT > & m
arma_inline eT * colptr(const uword in_col)
Class for finding mean values of a matrix.
Class for row vectors (matrices with only one row)
#define arma_extra_debug_sigprint
arma_aligned const eT *const mem
pointer to the memory used by the matrix (memory is read-only)
Class for storing data required to extract and set the diagonals of a matrix.