28 inline static T
direct_var(
const std::complex<T>*
const X,
const uword N,
const uword norm_type = 0);
static eT direct_var(const eT *const X, const uword N, const uword norm_type=0)
find the variance of an array
static eT direct_var_robust(const eT *const X, const uword N, const uword norm_type=0)
find the variance of an array (robust but slow)
Class for finding variance values of a matrix.
static void apply(Mat< typename T1::pod_type > &out, const mtOp< typename T1::pod_type, T1, op_var > &in)
For each row or for each column, find the variance. The result is stored in a dense matrix that has e...
Class for storing data required to extract and set the diagonals of a matrix.