Public Types | Static Public Member Functions

graphlab::glshared_sync_ops< Graph > Struct Template Reference

#include <shared_data_ops.hpp>

List of all members.

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)

Detailed Description

template<typename Graph>
struct graphlab::glshared_sync_ops< Graph >

Some basic sync operations (behave like folds)

Definition at line 95 of file shared_data_ops.hpp.


Member Function Documentation

template<typename Graph >
template<typename AccumType , AccumType(*)(const vertex_data_type &) Getter>
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.

template<typename Graph >
template<typename AccumType , AccumType(*)(const vertex_data_type &) Getter>
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.

template<typename Graph >
template<typename AccumType , AccumType(*)(const vertex_data_type &) Getter>
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.

template<typename Graph >
template<typename AccumType , AccumType(*)(const vertex_data_type &) Getter>
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.


The documentation for this struct was generated from the following file: