npstat::GaussLegendreQuadrature Class Reference
Inheritance diagram for npstat::GaussLegendreQuadrature:
Detailed DescriptionGauss-Legendre quadrature. Internally, operations are performed in long double precision. Constructor & Destructor Documentation◆ GaussLegendreQuadrature()
At the moment, the following numbers of points are supported: 2, 4, 6, 8, 10, 12, 16, 32, 64, 100, 128, 256, 512, 1024. If an unsupported number of points is given in the constructor, std::invalid_argument exception will be thrown. Member Function Documentation◆ allowedNPonts()
The complete set of allowed rules, in the increasing order ◆ getAbscissae()
The abscissae are returned for positive points only, so the buffer length should be at least npoints/2. ◆ getAllAbscissae()
Return abscissae for all points Implements npstat::AbsIntervalQuadrature1D. ◆ getAllWeights()
Return weights for all points Implements npstat::AbsIntervalQuadrature1D. ◆ getWeights()
The weights are returned for positive points only, so the buffer length should be at least npoints/2. ◆ integrate() [1/2]
template<typename FcnResult , typename FcnArg >
Perform the quadrature on the [a, b] interval ◆ integrate() [2/2]
template<typename FcnResult , typename FcnArg >
This method splits the interval [a, b] into "nsplit" subintervals of equal length, applies Gauss-Legendre quadrature to each subinterval, and sums the results. ◆ isAllowed()
Check if the rule with the given number of points is supported ◆ minimalExactRule()
Minimum number of points, among the supported rules, which integrates a polynomial with the given degree exactly. Returns 0 if the degree is out of range. ◆ npoints()
Return the number of quadrature points Implements npstat::AbsIntervalQuadrature1D. The documentation for this class was generated from the following file: Generated by 1.9.1 |