#include <shared_data_ops.hpp>
Public Types | |
| typedef Graph::vertex_data_type | vertex_data_type |
| typedef iscope< Graph > | iscope_type |
Static Public Member Functions | |
| template<typename AccumType , AccumType(*)(const vertex_data_type &) Getter> | |
| static void | sum (iscope_type &scope, any &accumulator) |
| template<typename AccumType , AccumType(*)(const vertex_data_type &) Getter> | |
| static void | l1_sum (iscope_type &scope, any &accumulator) |
| template<typename AccumType , AccumType(*)(const vertex_data_type &) Getter> | |
| static void | l2_sum (iscope_type &scope, any &accumulator) |
| template<typename AccumType , AccumType(*)(const vertex_data_type &) Getter> | |
| static void | max (iscope_type &scope, any &accumulator) |
Some basic sync operations (behave like folds)
Definition at line 95 of file shared_data_ops.hpp.
| static void graphlab::glshared_sync_ops< Graph >::l1_sum | ( | iscope_type & | scope, | |
| any & | accumulator | |||
| ) | [inline, static] |
Compute the L1 sum of the values result = sum abs(x[i])
Definition at line 118 of file shared_data_ops.hpp.
| static void graphlab::glshared_sync_ops< Graph >::l2_sum | ( | iscope_type & | scope, | |
| any & | accumulator | |||
| ) | [inline, static] |
Compute the L2 sum of the values: result = sum x[i]^2
Definition at line 129 of file shared_data_ops.hpp.
| static void graphlab::glshared_sync_ops< Graph >::max | ( | iscope_type & | scope, | |
| any & | accumulator | |||
| ) | [inline, static] |
Compute the max of the values: result = max {x_1, ... x_n}
Definition at line 141 of file shared_data_ops.hpp.
| static void graphlab::glshared_sync_ops< Graph >::sum | ( | iscope_type & | scope, | |
| any & | accumulator | |||
| ) | [inline, static] |
Compute the sum of the values result = sum x[i]
Definition at line 106 of file shared_data_ops.hpp.
1.7.1