Gobelijn API documentation  - generated for commit a0cbea7
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros Pages
UA_CoMP::Num::AGL_Quadrature< N1, N2, ConvergencePolicy, CellCountPolicy > Class Template Reference

AGL (Adaptive GaussLegendre) Quadrature. More...

#include <AGL_Quadrature.h>

Inheritance diagram for UA_CoMP::Num::AGL_Quadrature< N1, N2, ConvergencePolicy, CellCountPolicy >:
Inheritance graph
Collaboration diagram for UA_CoMP::Num::AGL_Quadrature< N1, N2, ConvergencePolicy, CellCountPolicy >:
Collaboration graph

Public Member Functions

 AGL_Quadrature (double convergenceTolerance, unsigned int initialCellCount, unsigned int cellCountLimit)
 Constructor initializes everything. More...
 
- Public Member Functions inherited from UA_CoMP::Num::AdaptiveQuadrature< GaussLegendreSelect< N1 >::Rule, GaussLegendreSelect< N2 >::Rule, ConvergencePolicy, CellCountPolicy >
 AdaptiveQuadrature (double convergenceTolerance, unsigned int initialCellCount, unsigned int cellCountLimit)
 Constructor initializes everything. More...
 
AQRule1< GaussLegendreSelect
< N1 >::Rule > & 
rule1 ()
 Return a reference to the first sum rule subobject. More...
 
AQRule2< GaussLegendreSelect
< N2 >::Rule > & 
rule2 ()
 Return a reference to the second sum rule subobject. More...
 
std::tuple< bool, typename
Integrand::result_type,
typename
Integrand::result_type,
unsigned int > 
evaluate (typename Integrand::argument_type l, typename Integrand::argument_type r, Integrand ftor) const
 Evaluates the quadrature for a functor based on comparing two sum rules. More...
 
Integrand::result_type operator() (typename Integrand::argument_type l, typename Integrand::argument_type r, Integrand ftor) const
 Simplified version of the evaluate member function, returns only second sum value. More...
 
double getConvergenceTolerance () const
 Return the convergence tolerance. More...
 
unsigned int getInitialCellCount () const
 Return the initial cell count. More...
 
unsigned int getCellCountLimit () const
 Return the cell count limit. More...
 
void setConvergenceTolerance (double x)
 Set the convergence tolerance. More...
 
void setInitialCellCount (unsigned int i)
 Set initial cell count. More...
 
void setCellCountLimit (unsigned int i)
 Set cell count limit. More...
 

Additional Inherited Members

- Public Types inherited from UA_CoMP::Num::AdaptiveQuadrature< GaussLegendreSelect< N1 >::Rule, GaussLegendreSelect< N2 >::Rule, ConvergencePolicy, CellCountPolicy >
using first_rule = AQRule1< GaussLegendreSelect< N1 >::Rule >
 
using second_rule = AQRule2< GaussLegendreSelect< N2 >::Rule >
 

Detailed Description

template<int N1, int N2, typename ConvergencePolicy = ComboDifference, typename CellCountPolicy = OnViolationThrow>
class UA_CoMP::Num::AGL_Quadrature< N1, N2, ConvergencePolicy, CellCountPolicy >

AGL (Adaptive GaussLegendre) Quadrature.

The rule orders are compile time constants. Helper construction to mitigate absence of typedefs template. See Herb. Sutter in C++ Users Journal, December 2002.

Definition at line 82 of file AGL_Quadrature.h.

Constructor & Destructor Documentation

template<int N1, int N2, typename ConvergencePolicy = ComboDifference, typename CellCountPolicy = OnViolationThrow>
UA_CoMP::Num::AGL_Quadrature< N1, N2, ConvergencePolicy, CellCountPolicy >::AGL_Quadrature ( double  convergenceTolerance,
unsigned int  initialCellCount,
unsigned int  cellCountLimit 
)
inline

Constructor initializes everything.

Definition at line 88 of file AGL_Quadrature.h.


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