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

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

Collaboration diagram for Native 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_native &ex, Input &problem, Divider &&divide_op, Solver &&solve_op, Combiner &&combine_op)
 Invoke Divide/conquer pattern with native parallel execution. More...
 

Detailed Description

Native 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_native ex,
Input &  problem,
Divider &&  divide_op,
Solver &&  solve_op,
Combiner &&  combine_op 
)

Invoke Divide/conquer pattern with native 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.