OpenFPM_pdata  1.1.0
Project that contain the implementation of distributed structures
 All Data Structures Namespaces Functions Variables Typedefs Enumerations Friends Pages
sum_functor_value< v_expr > Struct Template Reference

sum functor value More...

Detailed Description

template<typename v_expr>
struct sum_functor_value< v_expr >

sum functor value

Parameters
v_exprvector expression

Definition at line 22 of file sum.hpp.

#include <sum.hpp>

Public Types

typedef boost::mpl::size< v_expr > size
 Number of elements in the vector v_expr.
 
typedef boost::mpl::at< v_expr,
boost::mpl::int_< size::value-1 >
>::type 
last
 Last element of sum.
 

Public Member Functions

 sum_functor_value (const typename stub_or_real< last, last::dims, typename last::stype, typename last::b_grid::decomposition::extended_type >::type &g_map, grid_dist_key_dx< last::dims > &kmap, const grid_sm< last::dims, void > &gs, typename last::stype(&spacing)[last::dims], std::unordered_map< long int, typename last::stype > &cols, typename last::stype coeff)
 constructor More...
 
template<typename T >
void operator() (T &t) const
 It call this function for every expression operand in the sum. More...
 

Data Fields

std::unordered_map< long int,
typename last::stype > & 
cols
 sum functor
 
const grid_sm< last::dims, void > & gs
 Grid info.
 
const stub_or_real< last,
last::dims, typename
last::stype, typename
last::b_grid::decomposition::extended_type >
::type & 
g_map
 grid mapping
 
grid_dist_key_dx< last::dims > & kmap
 grid position
 
last::stype coeff
 coefficent
 
last::stype(& spacing )[last::dims]
 spacing
 

Constructor & Destructor Documentation

template<typename v_expr>
sum_functor_value< v_expr >::sum_functor_value ( const typename stub_or_real< last, last::dims, typename last::stype, typename last::b_grid::decomposition::extended_type >::type &  g_map,
grid_dist_key_dx< last::dims > &  kmap,
const grid_sm< last::dims, void > &  gs,
typename last::stype(&)  spacing[last::dims],
std::unordered_map< long int, typename last::stype > &  cols,
typename last::stype  coeff 
)
inline

constructor

Parameters
g_mapGrid mapping, it convert grid position into vector/Matrix row
kmapgrid position
gsgrid information
spacinggrid spacing
colsunordered map contain the map colum -> value
coeffit contain an additional actual coefficients in front of the values

Definition at line 59 of file sum.hpp.

Member Function Documentation

template<typename v_expr>
template<typename T >
void sum_functor_value< v_expr >::operator() ( T &  t) const
inline

It call this function for every expression operand in the sum.

Parameters
texpression operand id

Definition at line 74 of file sum.hpp.


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