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
size_t sz[2]={16,16};
float spacing[2] = {0.5,0.3};
std::unordered_map<long int,float> cols;
BOOST_REQUIRE_EQUAL(cols.size(),1ul);
BOOST_REQUIRE_EQUAL(cols[17],2);
Grid key for a distributed grid.
grid_key_dx is the key to access any element in the grid
It model an expression expr1 + ... exprn.
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.
Definition at line 92 of file sum.hpp.