OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
FD::grid_dist_expression_op< exp1, exp2, mul > Class Template Reference

Detailed Description

template<typename exp1, typename exp2>
class FD::grid_dist_expression_op< exp1, exp2, mul >

Definition at line 1355 of file FD_expressions.hpp.

Public Types

typedef exp2::gtype gtype
 

Public Member Functions

 grid_dist_expression_op (const exp1 &o1, const exp2 &o2)
 Costruct a FD expression out of two expressions.
 
void init () const
 This function must be called before value.
 
auto value (grid_dist_key_dx< gtype::dims > &key, comb< gtype::dims > &c_where) const -> typename std::remove_reference< decltype(o1.value(key, c_where))>::type
 Evaluate the expression.
 
auto getGrid () -> decltype(first_or_second< has_getGrid< exp1 >::value, exp1, exp2 >::getGrid(o1, o2))
 Return the grid on which is acting.
 
auto getGrid () const -> decltype(first_or_second< has_getGrid< exp1 >::value, exp1, exp2 >::getGrid(o1, o2))
 Return the grid on which is acting.
 
template<typename Sys_eqs , typename gmap_type , typename unordered_map_type >
void value_nz (const gmap_type &g_map, grid_dist_key_dx< Sys_eqs::dims > &key, const grid_sm< Sys_eqs::dims, void > &gs, typename Sys_eqs::stype(&spacing)[Sys_eqs::dims], unordered_map_type &cols, typename Sys_eqs::stype coeff, unsigned int comp, comb< Sys_eqs::dims > &c_where) const
 

Private Attributes

const exp1 o1
 expression 1
 
const exp2 o2
 expression 1
 

Member Typedef Documentation

◆ gtype

template<typename exp1 , typename exp2 >
typedef exp2::gtype FD::grid_dist_expression_op< exp1, exp2, mul >::gtype

Definition at line 1365 of file FD_expressions.hpp.

Constructor & Destructor Documentation

◆ grid_dist_expression_op()

template<typename exp1 , typename exp2 >
FD::grid_dist_expression_op< exp1, exp2, mul >::grid_dist_expression_op ( const exp1 &  o1,
const exp2 &  o2 
)
inline

Costruct a FD expression out of two expressions.

Definition at line 1368 of file FD_expressions.hpp.

Member Function Documentation

◆ getGrid() [1/2]

template<typename exp1 , typename exp2 >
auto FD::grid_dist_expression_op< exp1, exp2, mul >::getGrid ( ) -> decltype(first_or_second<has_getGrid<exp1>::value,exp1,exp2>::getGrid(o1,o2))
inline

Return the grid on which is acting.

It return the grid used in getVExpr, to get this object

Returns
the grid

Definition at line 1404 of file FD_expressions.hpp.

◆ getGrid() [2/2]

template<typename exp1 , typename exp2 >
auto FD::grid_dist_expression_op< exp1, exp2, mul >::getGrid ( ) const -> decltype(first_or_second<has_getGrid<exp1>::value,exp1,exp2>::getGrid(o1,o2))
inline

Return the grid on which is acting.

It return the grid used in getVExpr, to get this object

Returns
the grid

Definition at line 1416 of file FD_expressions.hpp.

◆ init()

template<typename exp1 , typename exp2 >
void FD::grid_dist_expression_op< exp1, exp2, mul >::init ( ) const
inline

This function must be called before value.

it initialize the expression if needed

Definition at line 1377 of file FD_expressions.hpp.

◆ value()

template<typename exp1 , typename exp2 >
auto FD::grid_dist_expression_op< exp1, exp2, mul >::value ( grid_dist_key_dx< gtype::dims > &  key,
comb< gtype::dims > &  c_where 
) const -> typename std::remove_reference<decltype(o1.value(key,c_where))>::type
inline

Evaluate the expression.

Parameters
keywhere to evaluate the expression
Returns
the result of the expression

Definition at line 1390 of file FD_expressions.hpp.

◆ value_nz()

template<typename exp1 , typename exp2 >
template<typename Sys_eqs , typename gmap_type , typename unordered_map_type >
void FD::grid_dist_expression_op< exp1, exp2, mul >::value_nz ( const gmap_type &  g_map,
grid_dist_key_dx< Sys_eqs::dims > &  key,
const grid_sm< Sys_eqs::dims, void > &  gs,
typename Sys_eqs::stype(&)  spacing[Sys_eqs::dims],
unordered_map_type &  cols,
typename Sys_eqs::stype  coeff,
unsigned int  comp,
comb< Sys_eqs::dims > &  c_where 
) const
inline

Definition at line 1422 of file FD_expressions.hpp.

Field Documentation

◆ o1

template<typename exp1 , typename exp2 >
const exp1 FD::grid_dist_expression_op< exp1, exp2, mul >::o1
private

expression 1

Definition at line 1358 of file FD_expressions.hpp.

◆ o2

template<typename exp1 , typename exp2 >
const exp2 FD::grid_dist_expression_op< exp1, exp2, mul >::o2
private

expression 1

Definition at line 1361 of file FD_expressions.hpp.


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