sum functor value More...
sum functor value
v_expr | vector expression |
#include <sum.hpp>
Public Types | |
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. | |
Public Member Functions | |
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 | |
template<typename T > | |
void | operator() (T &t) const |
It call this function for every expression operand in the sum. | |
Data Fields | |
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, typenamelast::stype, typenamelast::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 | |
typedef boost::mpl::at<v_expr,boost::mpl::int_<size::value-1>>::type sum_functor_value< v_expr >::last |
typedef boost::mpl::size<v_expr> sum_functor_value< v_expr >::size |
|
inline |
constructor
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 |
|
inline |
last::stype sum_functor_value< v_expr >::coeff |
std::unordered_map<long int,typename last::stype>& sum_functor_value< v_expr >::cols |
const stub_or_real<last,last::dims,typenamelast::stype,typenamelast::b_grid::decomposition::extended_type>::type& sum_functor_value< v_expr >::g_map |
const grid_sm<last::dims,void>& sum_functor_value< v_expr >::gs |
grid_dist_key_dx<last::dims>& sum_functor_value< v_expr >::kmap |
last::stype(& sum_functor_value< v_expr >::spacing)[last::dims] |