OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
FD::grid_dist_expression_op< exp1, void, GRID_DERIVATIVE< dir, ord_d, ord, impl > > Class Template Reference

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.

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.
 
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.
 
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.
 
const gtype & getGrid () const
 Return the vector on which is acting.
 

Private Attributes

const exp1 o1
 expression 1
 

Member Typedef Documentation

◆ gtype

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

Definition at line 500 of file FD_op.hpp.

Constructor & Destructor Documentation

◆ grid_dist_expression_op()

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

Costruct a FD expression out of two expressions.

Definition at line 503 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.

◆ value_nz()

template<typename exp1 , unsigned int dir, unsigned int ord_d, unsigned int ord, unsigned int impl>
template<typename Sys_eqs , typename gmap_type , typename unordered_map_type >
void FD::grid_dist_expression_op< exp1, void, GRID_DERIVATIVE< dir, ord_d, ord, impl > >::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
inline

Definition at line 550 of file FD_op.hpp.

Field Documentation

◆ o1

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

expression 1

Definition at line 496 of file FD_op.hpp.


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