OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
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
 
template<typename T >
void operator() (T &t)
 It call this function for every constant expression in the mul.
 
last::stype getCoeff ()
 Get the coefficent.
 

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
 

Member Typedef Documentation

◆ last

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

Last element of sum.

Definition at line 49 of file mul.hpp.

◆ size

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

Number of elements in the vector v_expr.

Definition at line 46 of file mul.hpp.

Constructor & Destructor Documentation

◆ const_mul_functor_value()

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

◆ getCoeff()

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.

◆ operator()()

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

It call this function for every constant expression in the mul.

Definition at line 92 of file mul.hpp.

Field Documentation

◆ coeff

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

coefficent

Definition at line 64 of file mul.hpp.

◆ cols

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

sum functor

Definition at line 52 of file mul.hpp.

◆ g_map

template<typename v_expr >
const grid_dist_id<last::dims,typename last::stype,aggregate<size_t>,typename last::b_grid::decomposition::extended_type>& const_mul_functor_value< v_expr >::g_map

grid mapping

Definition at line 58 of file mul.hpp.

◆ gs

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

grid size

Definition at line 55 of file mul.hpp.

◆ kmap

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

grid position

Definition at line 61 of file mul.hpp.

◆ spacing

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

spacing

Definition at line 67 of file mul.hpp.


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