36 out =
var(A, norm_type);
42 const eT norm_val = (norm_type == 0) ? ( (N > 1) ? eT(N-1) : eT(1) ) : eT(N);
47 out -= (
trans(acc) * acc)/eT(N);
61 typedef typename std::complex<T> eT;
81 const eT norm_val = (norm_type == 0) ? ( (N > 1) ? eT(N-1) : eT(1) ) : eT(N);
86 out -= (
trans(acc) * acc)/eT(N);
100 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
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)
static void direct_cov(Mat< eT > &out, const Mat< eT > &X, const uword norm_type)
Class for row vectors (matrices with only one row)
#define arma_extra_debug_sigprint
const mtOp< typename T1::pod_type, T1, op_var > var(const Base< typename T1::elem_type, T1 > &X, const uword norm_type=0, const uword dim=0)
arma_aligned uword aux_uword_a
storage of auxiliary data, uword format
static void apply(Mat< typename T1::elem_type > &out, const Op< T1, op_cov > &in)