vSMC
vSMC: Scalable Monte Carlo
Namespaces | Functions
parallel_accumulate.hpp File Reference
#include <vsmc/internal/common.hpp>
#include <vsmc/thread/blocked_range.hpp>
#include <vsmc/thread/thread_guard.hpp>
#include <vsmc/thread/thread_num.hpp>
#include <thread>

Go to the source code of this file.

Namespaces

 vsmc
 

Functions

template<typename Range , typename T , typename WorkType >
vsmc::parallel_accumulate (const Range &range, WorkType &&work, T init)
 Parallel accumulate using C++11 concurrency. More...
 
template<typename Range , typename T , typename Bin , typename WorkType >
vsmc::parallel_accumulate (const Range &range, WorkType &&work, T init, Bin bin_op)
 Parallel accumulate using std::thread. More...