doc/Programs/LecturePrograms/programs/Blocking/parallelblocking.cpp
double mean(double *vals, int n_vals){
  
  double m=0;
  for(int i=0; i<n_vals; i++){
    m+=vals[i];
  }

  return m/double(n_vals);
}
// find mean of values in vals
find mean of values in vals
find mean of values in vals
double mean(double *vals, int n_vals){
  double m=0;
  for(int i=0; i<n_vals; i++){
    m+=vals[i];
  }
  return m/double(n_vals);
}
double mean ( double * vals , int n_vals ) { double m = 0 ; for ( int i = 0 ; i < n_vals ; i ++ ) { m += vals [ i ] ; } return m / double ( n_vals ) ; }
find mean of values in vals
find mean of values in vals