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

Multiplication expression. More...

Detailed Description

template<typename v_expr>
struct const_mul_functor_value< v_expr >

Multiplication expression.

Definition at line 43 of file mul.hpp.

#include <mul.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

 const_mul_functor_value (const grid_dist_id< last::dims, typename last::stype, aggregate< size_t >, typename last::b_grid::decomposition::extended_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)
 It call this function for every constant expression in the mul.
 
last::stype getCoeff ()
 Get the coefficent. More...
 

Data Fields

std::unordered_map< long int,
typename last::stype > & 
cols
 sum functor
 
const grid_sm< last::dims, void > & gs
 grid size
 
const grid_dist_id< last::dims,
typename last::stype,
aggregate< size_t >, typename
last::b_grid::decomposition::extended_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>
const_mul_functor_value< v_expr >::const_mul_functor_value ( const grid_dist_id< last::dims, typename last::stype, aggregate< size_t >, typename last::b_grid::decomposition::extended_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_mapmapping grid
kmapgrid point (row) where we evaluate the non-zero colums
gsgrid size
spacinggrid spacing
colsnon zero colums
coeffmultiplication coefficent

Definition at line 79 of file mul.hpp.

Member Function Documentation

template<typename v_expr>
last::stype const_mul_functor_value< v_expr >::getCoeff ( )
inline

Get the coefficent.

Returns
the coefficent

Definition at line 104 of file mul.hpp.


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