GrPPI  0.2
Generic and Reusable Parallel Pattern Interface
Functions
TBB parallel divide/conquer pattern.

TBB parallel implementation of the Divide/conquer pattern. More...

Collaboration diagram for TBB parallel divide/conquer pattern.:

Functions

template<typename Input , typename Divider , typename Solver , typename Combiner >
std::result_of< Solver(Input)>::type grppi::divide_conquer (parallel_execution_tbb &ex, Input &input, Divider &&divide_op, Solver &&solve_op, Combiner &&combine_op)
 Invoke Divide/conquer pattern with TBB parallel execution. More...
 

Detailed Description

TBB parallel implementation of the Divide/conquer pattern.

Function Documentation

template<typename Input , typename Divider , typename Solver , typename Combiner >
std::result_of<Solver(Input)>::type grppi::divide_conquer ( parallel_execution_tbb ex,
Input &  input,
Divider &&  divide_op,
Solver &&  solve_op,
Combiner &&  combine_op 
)

Invoke Divide/conquer pattern with TBB parallel execution.

Template Parameters
InputType used for the input problem.
DividerCallable type for the divider operation.
SolverCallable type for the solver operation.
CombinerCallable type for the combiner operation.
Parameters
exSequential execution policy object.
inputInput problem to be solved.
divider_opDivider operation.
solver_opSolver operation.
combiner_opCombiner operation.