op_mean_proto.hpp
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 class op_mean
00021 {
00022 public:
00023
00024 template<typename eT>
00025 inline static eT direct_mean(const eT* const X, const u32 N);
00026
00027 template<typename eT>
00028 inline static eT direct_mean(const subview<eT>& X);
00029
00030 template<typename eT>
00031 inline static eT direct_mean(const diagview<eT>& X);
00032
00033 template<typename T1>
00034 inline static void apply(Mat<typename T1::elem_type>& out, const Op<T1,op_mean>& in);
00035
00036 };
00037
00038