Class managing a reduction of a sum of values. More...
#include <arcane/core/parallel/IMultiReduce.h>
Public Member Functions | |
| ReduceSumOfRealHelper (bool is_strict) | |
| void | add (Real v) |
| Adds the value v. | |
| void | clear () |
| Clears the accumulated values. | |
| RealConstArrayView | values () const |
| List of accumulated values. | |
| Real | reducedValue () const |
| Reduced value. | |
| void | setReducedValue (Real v) |
| Positions the reduced value. | |
Class managing a reduction of a sum of values.
Instances of this class must be created via IMultiReduce::getSumOfReal(). The user must accumulate values via the call to add(). After execution of the reduction via IMultiReduce::execute(), it is possible to retrieve the reduced value via reducedValue().
Definition at line 37 of file IMultiReduce.h.
|
inline |
Definition at line 41 of file IMultiReduce.h.
|
inline |
Adds the value v.
Definition at line 52 of file IMultiReduce.h.
|
inline |
Clears the accumulated values.
Definition at line 61 of file IMultiReduce.h.
|
inline |
Reduced value.
Definition at line 70 of file IMultiReduce.h.
|
inline |
Positions the reduced value.
Definition at line 73 of file IMultiReduce.h.
|
inline |
List of accumulated values.
Definition at line 67 of file IMultiReduce.h.