Public Types | Public Member Functions

rt_numerical_quadrature< InterfaceType > Class Template Reference

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_quadratureoperator= (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'.

Detailed Description

template<typename InterfaceType = default_interface_type>
class viennamath::rt_numerical_quadrature< InterfaceType >

The main numerical quadrature rule class. Wraps the integration rule and performs all the book-keeping for the evaluation.


Member Typedef Documentation

typedef InterfaceType::numeric_type NumericT

Constructor & Destructor Documentation

rt_numerical_quadrature (  )  [inline]
rt_numerical_quadrature ( numerical_quadrature_interface< InterfaceType > *  ptr  )  [inline]
rt_numerical_quadrature ( const rt_numerical_quadrature< InterfaceType > &  other  )  [inline]

Member Function Documentation

NumericT operator() ( rt_expr< InterfaceType > const &  e  )  const [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]

The documentation for this class was generated from the following file: