Built-in Reducers#

ReducerConcept provides the concept for Reducers.

Reducer objects used in conjunction with parallel_reduce

Reducer

Description

BAnd

Binary ‘And’ reduction

BOr

Binary ‘Or’ reduction

LAnd

Logical ‘And’ reduction

LOr

Logical ‘Or’ reduction

Max

Maximum reduction

MaxLoc

Reduction providing maximum and an associated index

Min

Minimum reduction

MinLoc

Reduction providing minimum and an associated index

MinMax

Reduction providing both minimum and maximum

MinMaxLoc

Reduction providing both minimum and maximum and associated indices

Prod

Multiplicative reduction

Sum

Sum reduction

Reduction Scalar Types are template classes for storage for reducers.