Reducer for finding the maximum of many values. More...
#include <Reducer.hpp>
Public Member Functions | |
| Super (ReducerImpl< T, collective_max >) | |
| void | operator<< (const T &v) |
Public Member Functions inherited from ReducerImpl< T, collective_max > | |
| ReducerImpl () | |
| operator T () const | |
| Read out value; does expensive global reduce. More... | |
| void | operator= (const T &v) |
| Globally set the value; expensive global synchronization. More... | |
| void | reset () |
| Globally reset to default value for the type. More... | |
Additional Inherited Members | |
Protected Attributes inherited from ReducerImpl< T, collective_max > | |
| T | local_value |
Reducer for finding the maximum of many values.
Provides cheap operator (<<) for "inserting" potential max values.
Example:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Reducer<double,ReducerType::Max> max_val;
// ... (somewhere in main task) max_val = 0.0; forall(A, N, [](double& A_i){ max_val << A_i; }); LOG(INFO) << "maximum value: " << max_val;
Definition at line 386 of file Reducer.hpp.
|
inline |
Definition at line 389 of file Reducer.hpp.
| Reducer< T, ReducerType::Max >::Super | ( | ReducerImpl< T, collective_max > | ) |