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

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

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

Detailed Description

OpenMP 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_omp ex,
Input &  input,
Divider &&  divide_op,
Solver &&  solve_op,
Combiner &&  combine_op 
)

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