#include <op_mean_proto.hpp>
Static Public Member Functions | |
template<typename eT > | |
static eT | direct_mean (const eT *const X, const u32 N) |
find the mean value of an array | |
template<typename eT > | |
static eT | direct_mean (const subview< eT > &X) |
find the mean value of a subview | |
template<typename eT > | |
static eT | direct_mean (const diagview< eT > &X) |
find the mean value of a diagview | |
template<typename T1 > | |
static void | apply (Mat< typename T1::elem_type > &out, const Op< T1, op_mean > &in) |
For each row or for each column, find the mean value. The result is stored in a dense matrix that has either one column or one row. The dimension, for which the means are found, is set via the mean() function. |
Definition at line 20 of file op_mean_proto.hpp.