vSMC
vSMC: Scalable Monte Carlo
|
C++11 threading support. More...
Classes | |
class | vsmc::BlockedRange< T > |
Blocked range. More... | |
class | vsmc::ThreadGuard< ThreadType > |
Strictly scope-based thread ownership wrapper. More... | |
class | vsmc::ThreadNum |
Number of threads used by algorithms. More... | |
Functions | |
template<typename Range , typename T , typename WorkType > | |
T | 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 > | |
T | vsmc::parallel_accumulate (const Range &range, WorkType &&work, T init, Bin bin_op) |
Parallel accumulate using std::thread. More... | |
template<typename Range , typename WorkType > | |
void | vsmc::parallel_for (const Range &range, WorkType &&work) |
Parallel for using std::thread. More... | |
template<typename Range , typename WorkType > | |
void | vsmc::parallel_reduce (const Range &range, WorkType &work) |
Parallel reduce using C++11 concurrency. More... | |
template<typename WorkType > | |
void | vsmc::parallel_repeat (std::size_t n, WorkType &&work) |
Parallel repeat using std::thread. More... | |
C++11 threading support.
|
inline |
Parallel accumulate using C++11 concurrency.
Requirement: WorkType
Definition at line 53 of file parallel_accumulate.hpp.
|
inline |
Parallel accumulate using std::thread.
Requirement: WorkType
Definition at line 85 of file parallel_accumulate.hpp.
|
inline |
Parallel for using std::thread.
Requirement: WorkType:
Definition at line 53 of file parallel_for.hpp.
|
inline |
Parallel reduce using C++11 concurrency.
Requirement: WorkType
Definition at line 54 of file parallel_reduce.hpp.
|
inline |
Parallel repeat using std::thread.
Requirement: WorkType:
Definition at line 51 of file parallel_repeat.hpp.