PhoenixHardware  0.2.0
Tools to get hardware information
Loading...
Searching...
No Matches
PFunctionPerf.cpp File Reference
#include <math.h>
#include "PFunctionPerf.h"
+ Include dependency graph for PFunctionPerf.cpp:

Go to the source code of this file.

Functions

template<typename T>
reduceVectorVale (const std::vector< T > &vec)
 Sum the given vector.
 

Function Documentation

◆ reduceVectorVale()

template<typename T>
T reduceVectorVale ( const std::vector< T > & vec)

Sum the given vector.

Parameters
vec: vector of value
Returns
sum of vector value

Definition at line 102 of file PFunctionPerf.cpp.

102 {
103 T sum(0);
104 for(typename std::vector<T>::const_iterator it(vec.begin()); it != vec.end(); ++it){
105 sum += *it;
106 }
107 return sum;
108}

Referenced by PFunctionPerf::getPerf().

+ Here is the caller graph for this function: