sum functor value
More...
#include <sum.hpp>
|
|
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.
|
| |
|
| | sum_functor_value (const typename stub_or_real< last, last::dims, typename last::stype, typename last::b_grid::decomposition::extended_type >::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) const |
| | It call this function for every expression operand in the sum. More...
|
| |
|
|
std::unordered_map< long int, typename last::stype > & | cols |
| | sum functor
|
| |
|
const grid_sm< last::dims, void > & | gs |
| | Grid info.
|
| |
|
const stub_or_real< last, last::dims, typename last::stype, typename last::b_grid::decomposition::extended_type >::type & | g_map |
| | grid mapping
|
| |
|
grid_dist_key_dx< last::dims > & | kmap |
| | grid position
|
| |
|
last::stype | coeff |
| | coefficent
|
| |
|
last::stype(& | spacing )[last::dims] |
| | spacing
|
| |
template<typename v_expr>
struct sum_functor_value< v_expr >
sum functor value
- Parameters
-
Definition at line 22 of file sum.hpp.
◆ sum_functor_value()
template<typename v_expr >
| sum_functor_value< v_expr >::sum_functor_value |
( |
const typename stub_or_real< last, last::dims, typename last::stype, typename last::b_grid::decomposition::extended_type >::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_map | Grid mapping, it convert grid position into vector/Matrix row |
| kmap | grid position |
| gs | grid information |
| spacing | grid spacing |
| cols | unordered map contain the map colum -> value |
| coeff | it contain an additional actual coefficients in front of the values |
Definition at line 59 of file sum.hpp.
◆ operator()()
template<typename v_expr >
template<typename T >
It call this function for every expression operand in the sum.
- Parameters
-
Definition at line 74 of file sum.hpp.
The documentation for this struct was generated from the following file:
- openfpm_numerics/src/FiniteDifference/sum.hpp