OpenFPM  5.2.0
Project that contain the implementation of distributed structures
FD::grid_dist_expression_op< exp1, void, GRID_DERIVATIVE< dir, ord_d, ord, impl > > Class Template Reference

Public Types

typedef exp1::gtype gtype
 

Public Member Functions

 grid_dist_expression_op (const exp1 &o1)
 Costruct a FD expression out of two expressions.
 
void init () const
 This function must be called before value. More...
 
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. More...
 
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 > &kmap, 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
 
gtype & getGrid ()
 Return the vector on which is acting. More...
 
const gtype & getGrid () const
 Return the vector on which is acting. More...
 

Private Attributes

const exp1 o1
 expression 1
 

Detailed Description

template<typename exp1, unsigned int dir, unsigned int ord_d, unsigned int ord, unsigned int impl>
class FD::grid_dist_expression_op< exp1, void, GRID_DERIVATIVE< dir, ord_d, ord, impl > >

Definition at line 493 of file FD_op.hpp.

Member Function Documentation

◆ getGrid() [1/2]

template<typename exp1 , unsigned int dir, unsigned int ord_d, unsigned int ord, unsigned int impl>
gtype& FD::grid_dist_expression_op< exp1, void, GRID_DERIVATIVE< dir, ord_d, ord, impl > >::getGrid ( )
inline

Return the vector on which is acting.

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

Returns
the vector

Definition at line 586 of file FD_op.hpp.

◆ getGrid() [2/2]

template<typename exp1 , unsigned int dir, unsigned int ord_d, unsigned int ord, unsigned int impl>
const gtype& FD::grid_dist_expression_op< exp1, void, GRID_DERIVATIVE< dir, ord_d, ord, impl > >::getGrid ( ) const
inline

Return the vector on which is acting.

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

Returns
the vector

Definition at line 598 of file FD_op.hpp.

◆ init()

template<typename exp1 , unsigned int dir, unsigned int ord_d, unsigned int ord, unsigned int impl>
void FD::grid_dist_expression_op< exp1, void, GRID_DERIVATIVE< dir, ord_d, ord, impl > >::init ( ) const
inline

This function must be called before value.

it initialize the expression if needed

Definition at line 512 of file FD_op.hpp.

◆ value()

template<typename exp1 , unsigned int dir, unsigned int ord_d, unsigned int ord, unsigned int impl>
auto FD::grid_dist_expression_op< exp1, void, GRID_DERIVATIVE< dir, ord_d, ord, impl > >::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 524 of file FD_op.hpp.


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