OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
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
 
template<typename T >
void operator() (T &t) const
 It call this function for every expression operand in the sum.
 

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, typenamelast::stype, typenamelast::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
 

Member Typedef Documentation

◆ last

template<typename v_expr >
typedef boost::mpl::at<v_expr,boost::mpl::int_<size::value-1>>::type sum_functor_value< v_expr >::last

Last element of sum.

Definition at line 28 of file sum.hpp.

◆ size

template<typename v_expr >
typedef boost::mpl::size<v_expr> sum_functor_value< v_expr >::size

Number of elements in the vector v_expr.

Definition at line 25 of file sum.hpp.

Constructor & Destructor Documentation

◆ sum_functor_value()

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

◆ operator()()

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.

Field Documentation

◆ coeff

template<typename v_expr >
last::stype sum_functor_value< v_expr >::coeff

coefficent

Definition at line 43 of file sum.hpp.

◆ cols

template<typename v_expr >
std::unordered_map<long int,typename last::stype>& sum_functor_value< v_expr >::cols

sum functor

Definition at line 31 of file sum.hpp.

◆ g_map

template<typename v_expr >
const stub_or_real<last,last::dims,typenamelast::stype,typenamelast::b_grid::decomposition::extended_type>::type& sum_functor_value< v_expr >::g_map

grid mapping

Definition at line 37 of file sum.hpp.

◆ gs

template<typename v_expr >
const grid_sm<last::dims,void>& sum_functor_value< v_expr >::gs

Grid info.

Definition at line 34 of file sum.hpp.

◆ kmap

template<typename v_expr >
grid_dist_key_dx<last::dims>& sum_functor_value< v_expr >::kmap

grid position

Definition at line 40 of file sum.hpp.

◆ spacing

template<typename v_expr >
last::stype(& sum_functor_value< v_expr >::spacing)[last::dims]

spacing

Definition at line 46 of file sum.hpp.


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