// ... and wait until they're finished
thread_manager.wait ();
// accumulate the partial results
- return accumulate (partial_sums.begin(),
- partial_sums.end(),
- 0.);
+ return std::accumulate (partial_sums.begin(),
+ partial_sums.end(),
+ 0.);
};
#endif
// if not in MT mode or the matrix is
// ... and wait until they're finished
thread_manager.wait ();
// accumulate the partial results
- return accumulate (partial_sums.begin(),
- partial_sums.end(),
- 0.);
+ return std::accumulate (partial_sums.begin(),
+ partial_sums.end(),
+ 0.);
};
#endif
// if not in MT mode or the matrix is
// ... and wait until they're finished
thread_manager.wait ();
// accumulate the partial results
- return sqrt(accumulate (partial_norms.begin(),
- partial_norms.end(),
- 0.));
+ return std::sqrt(std::accumulate (partial_norms.begin(),
+ partial_norms.end(),
+ 0.));
};
#endif