GrPPI  0.3.1
Generic and Reusable Parallel Pattern Interface
Functions
Divide/Conquer pattern

Interface for applyinng the Divide/conquer pattern. More...

Collaboration diagram for Divide/Conquer pattern:

Functions

template<typename Execution , typename Input , typename Divider , typename Solver , typename Combiner >
auto grppi::divide_conquer (const Execution &ex, Input &&input, Divider &&divider_op, Solver &&solver_op, Combiner &&combiner_op)
 Invoke Divide/conquer pattern. Execution Execution type. More...
 
template<typename Execution , typename Input , typename Divider , typename Predicate , typename Solver , typename Combiner >
auto grppi::divide_conquer (const Execution &ex, Input &&input, Divider &&divider_op, Predicate &&predicate_op, Solver &&solver_op, Combiner &&combiner_op)
 Invoke Divide/conquer pattern. Execution Execution type. More...
 

Detailed Description

Interface for applyinng the Divide/conquer pattern.

Function Documentation

template<typename Execution , typename Input , typename Divider , typename Solver , typename Combiner >
auto grppi::divide_conquer ( const Execution &  ex,
Input &&  input,
Divider &&  divider_op,
Solver &&  solver_op,
Combiner &&  combiner_op 
)

Invoke Divide/conquer pattern. Execution Execution type.

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
exExecution policy object.
inputInput problem to be solved.
divider_opDivider operation.
solver_opSolver operation.
combiner_opCombiner operation.
template<typename Execution , typename Input , typename Divider , typename Predicate , typename Solver , typename Combiner >
auto grppi::divide_conquer ( const Execution &  ex,
Input &&  input,
Divider &&  divider_op,
Predicate &&  predicate_op,
Solver &&  solver_op,
Combiner &&  combiner_op 
)

Invoke Divide/conquer pattern. Execution Execution type.

Template Parameters
InputType used for the input problem.
DividerCallable type for the divider operation.
PredicateCallable type for the stop condition predicate.
SolverCallable type for the solver operation.
CombinerCallable type for the combiner operation.
Parameters
exExecution policy object.
inputInput problem to be solved.
divider_opDivider operation.
predicate_opPredicate operation.
solver_opSolver operation.
combiner_opCombiner operation.