The main numerical quadrature rule class. Wraps the integration rule and performs all the book-keeping for the evaluation. More...
#include <numerical_quadrature.hpp>
Public Types | |
typedef InterfaceType::numeric_type | NumericT |
Public Member Functions | |
rt_numerical_quadrature () | |
rt_numerical_quadrature (numerical_quadrature_interface< InterfaceType > *ptr) | |
rt_numerical_quadrature (const rt_numerical_quadrature &other) | |
rt_numerical_quadrature & | operator= (const rt_numerical_quadrature &other) |
NumericT | operator() (rt_expr< InterfaceType > const &e) const |
Evaluate the passed expression numerically. Note that all leaves of the expression tree need to be an integral equipped with a suitable interval. | |
NumericT | operator() (rt_interval< InterfaceType > const &interv, rt_expr< InterfaceType > const &e, rt_variable< InterfaceType > const &var) const |
Integrates the provided expression 'e' over the interval 'interv' with respect to the runtime variable 'var'. | |
template<id_type id> | |
NumericT | operator() (rt_interval< InterfaceType > const &interv, rt_expr< InterfaceType > const &e, ct_variable< id > const &var) const |
Integrates the provided expression 'e' over the interval 'interv' with respect to the compiletime variable 'var'. |
The main numerical quadrature rule class. Wraps the integration rule and performs all the book-keeping for the evaluation.
typedef InterfaceType::numeric_type NumericT |
rt_numerical_quadrature | ( | ) | [inline] |
rt_numerical_quadrature | ( | numerical_quadrature_interface< InterfaceType > * | ptr | ) | [inline] |
rt_numerical_quadrature | ( | const rt_numerical_quadrature< InterfaceType > & | other | ) | [inline] |
Evaluate the passed expression numerically. Note that all leaves of the expression tree need to be an integral equipped with a suitable interval.
NumericT operator() | ( | rt_interval< InterfaceType > const & | interv, | |
rt_expr< InterfaceType > const & | e, | |||
ct_variable< id > const & | var | |||
) | const [inline] |
Integrates the provided expression 'e' over the interval 'interv' with respect to the compiletime variable 'var'.
NumericT operator() | ( | rt_interval< InterfaceType > const & | interv, | |
rt_expr< InterfaceType > const & | e, | |||
rt_variable< InterfaceType > const & | var | |||
) | const [inline] |
Integrates the provided expression 'e' over the interval 'interv' with respect to the runtime variable 'var'.
rt_numerical_quadrature& operator= | ( | const rt_numerical_quadrature< InterfaceType > & | other | ) | [inline] |