It model an expression expr1 + ... exprn.
More...
#include <sum.hpp>
|
|
typedef boost::mpl::vector< expr... > | v_expr |
| | Transform from variadic template to boost mpl vector.
|
| |
|
typedef boost::mpl::size< v_expr >::type | v_sz |
| | size of v_expr
|
| |
|
typedef boost::mpl::at< v_expr, boost::mpl::int_< v_sz::type::value - 1 > >::type | Sys_eqs |
| | struct that specify the syste, of equations
|
| |
|
| static void | value (const typename stub_or_real< Sys_eqs, Sys_eqs::dims, typename Sys_eqs::stype, typename Sys_eqs::b_grid::decomposition::extended_type >::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], std::unordered_map< long int, typename Sys_eqs::stype > &cols, typename Sys_eqs::stype coeff) |
| | Calculate which colums of the Matrix are non zero. More...
|
| |
template<typename ... expr>
struct sum< expr >
It model an expression expr1 + ... exprn.
- Template Parameters
-
| expr.. | two or more expression to be summed |
| Sys_eqs | stystem specification |
Example
Definition at line 92 of file sum.hpp.
◆ value()
template<typename ... expr>
| static void sum< expr >::value |
( |
const typename stub_or_real< Sys_eqs, Sys_eqs::dims, typename Sys_eqs::stype, typename Sys_eqs::b_grid::decomposition::extended_type >::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], |
|
|
std::unordered_map< long int, typename Sys_eqs::stype > & |
cols, |
|
|
typename Sys_eqs::stype |
coeff |
|
) |
| |
|
inlinestatic |
Calculate which colums of the Matrix are non zero.
- 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 |
Example
Definition at line 117 of file sum.hpp.
The documentation for this struct was generated from the following file:
- openfpm_numerics/src/FiniteDifference/sum.hpp