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

Interface for applyinng the md_divide-conquer. 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 md_divide-conquer. \parapm 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 md_divide-conquer. \parapm Execution Execution type. More...
 

Detailed Description

Interface for applyinng the md_divide-conquer.

Function Documentation

◆ divide_conquer() [1/2]

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 md_divide-conquer. \parapm 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.

◆ divide_conquer() [2/2]

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 md_divide-conquer. \parapm 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.