npstat is hosted by Hepforge, IPPP Durham
NPStat  5.10.0
npstat::GaussLegendreQuadrature2D Class Reference

Public Member Functions

 GaussLegendreQuadrature2D (unsigned npoints0, unsigned npoints1)
 
unsigned npoints (unsigned dim) const
 
template<class Functor >
long double integrate (const Functor &fcn, long double a, long double b, long double c, long double d) const
 

Constructor & Destructor Documentation

◆ GaussLegendreQuadrature2D()

npstat::GaussLegendreQuadrature2D::GaussLegendreQuadrature2D ( unsigned  npoints0,
unsigned  npoints1 
)

The number of supported points in each dimension is the same as for the 1-d Gauss-Legendre quadrature

Member Function Documentation

◆ integrate()

template<class Functor >
long double npstat::GaussLegendreQuadrature2D::integrate ( const Functor &  fcn,
long double  a,
long double  b,
long double  c,
long double  d 
) const

Perform the quadrature on the [a, b] x [c, d] rectangle

◆ npoints()

unsigned npstat::GaussLegendreQuadrature2D::npoints ( unsigned  dim) const

Return the number of quadrature points in the given dimension


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