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