12 #ifndef THRILL_API_MAX_HEADER 13 #define THRILL_API_MAX_HEADER 21 template <
typename ValueType,
typename Stack>
26 auto node = tlx::make_counting<MaxNode>(*
this,
"Max");
28 return node->result();
31 template <
typename ValueType,
typename Stack>
36 auto node = tlx::make_counting<MaxNode>(
37 *
this,
"Max", initial_value,
true);
39 return node->result();
42 template <
typename ValueType,
typename Stack>
47 auto node = tlx::make_counting<MaxNode>(*
this,
"Max");
51 template <
typename ValueType,
typename Stack>
57 auto node = tlx::make_counting<MaxNode>(
58 *
this,
"Max", initial_value,
true);
65 #endif // !THRILL_API_MAX_HEADER
ValueType Max() const
Max is an Action, which computes the maximum of all elements globally.
Future< ValueType > MaxFuture() const
Max is an ActionFuture, which computes the maximum of all elements globally.
The return type class for all ActionFutures.