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

Sequential implementation of the Divide/conquer pattern. More...

Collaboration diagram for Sequential divide/conquer pattern:

Functions

template<typename Input , typename Divider , typename Solver , typename Combiner >
std::result_of< Solver(Input)>::type grppi::divide_conquer (sequential_execution &ex, Input &input, Divider &&divider_op, Solver &&solver_op, Combiner &&combiner_op)
 Invoke Divide/conquer pattern with sequential execution. More...
 

Detailed Description

Sequential 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 ( sequential_execution ex,
Input &  input,
Divider &&  divider_op,
Solver &&  solver_op,
Combiner &&  combiner_op 
)

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