42 const eT norm_val = (norm_type == 0) ? ( (N > 1) ? eT(N-1) : eT(1) ) : eT(N);
48 out -= (
trans(acc) * acc)/eT(N);
50 out /=
trans(sd) * sd;
63 typedef typename std::complex<T> eT;
78 const uword N = A.n_rows;
79 const eT norm_val = (norm_type == 0) ? ( (N > 1) ? eT(N-1) : eT(1) ) : eT(N);
85 out -= (
trans(acc) * acc)/eT(N);
102 typedef typename T1::elem_type eT;
arma_inline const Op< T1, op_sum > sum(const Base< typename T1::elem_type, T1 > &X, const uword dim=0)
Delayed sum of elements of a matrix along a specified dimension (either rows or columns). The result is stored in a dense matrix that has either one column or one row. For dim = 0, find the sum of each column. For dim = 1, find the sum of each row. The default is dim = 0. NOTE: this function works differently than in Matlab/Octave.
arma_inline arma_warn_unused bool is_vec() const
returns true if the object can be interpreted as a column or row vector
void set_size(const uword in_elem)
change the matrix to have user specified dimensions (data is not preserved)
const mtOp< typename T1::pod_type, T1, op_stddev > stddev(const Base< typename T1::elem_type, T1 > &X, const uword norm_type=0, const uword dim=0)
static void apply(Mat< typename T1::elem_type > &out, const Op< T1, op_cor > &in)
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_htrans > trans(const Base< typename T1::elem_type, T1 > &X)
Class for row vectors (matrices with only one row)
#define arma_extra_debug_sigprint
static void direct_cor(Mat< eT > &out, const Mat< eT > &X, const uword norm_type)
arma_aligned uword aux_uword_a
storage of auxiliary data, uword format
arma_inline arma_warn_unused bool is_empty() const
returns true if the matrix has no elements