GrPPI
0.2
Generic and Reusable Parallel Pattern Interface
|
Sequential implementation of the Divide/conquer pattern. More...
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 &÷r_op, Solver &&solver_op, Combiner &&combiner_op) |
Invoke Divide/conquer pattern with sequential execution. More... | |
Sequential implementation of the Divide/conquer pattern.
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.
Input | Type used for the input problem. |
Divider | Callable type for the divider operation. |
Solver | Callable type for the solver operation. |
Combiner | Callable type for the combiner operation. |
ex | Sequential execution policy object. |
input | Input problem to be solved. |
divider_op | Divider operation. |
solver_op | Solver operation. |
combiner_op | Combiner operation. |