#include <quadRule.hh>
Public Member Functions | |
| QuadratureRule1dGaussJacobi (uint n) | |
| virtual uint | n () const |
| Returns the number of points. | |
| virtual const Real * | abscissas () const |
| Returns a pointer into the array of the abscissas. | |
| virtual const Real * | weights () const |
| Returns a pointer into the array of the weights. | |
| virtual void | printRule () |
| print weights and abscissas to stdout | |
Protected Member Functions | |
| virtual std::ostream & | info (std::ostream &os) const |
| Returns information in an output stream. | |
Protected Attributes | |
| const Real * | abscissas_ |
| Abscissas. | |
| const Real * | weights_ |
| Weights. | |
Gauss Jacobi quadrature rule not including both endpoints.
![\[ \int_{-1}^1 f(x) \, dx \approx \sum_{i=0}^p w_i f(x_i) \]](form_619.png)
is exact for 
The abscissas 

![\[w_i = \frac{2}{1-x_i^2} \left( \frac{d}{dx} \left. P^{(0,0)}_{p+1}(x) \right|_{x=x_i} \right)^{-2}.\]](form_637.png)
The computations and the storage of the values are done by the class Quadrature with template parameter 4. The difference between this class and Quadrature is that it is in a class hierarchy of quadrature rules. This has advantages when dynamically switching quadrature rules is needed. On the other hand, this class returns the values via a virtual function call abscissas() and weights() should therefore not be called to often (inside loops etc.).
Definition at line 135 of file quadRule.hh.
|
inline |
Constructor. Computes the quadrature points.
| n | Number of points to be computed |
Definition at line 140 of file quadRule.hh.
Returns a pointer into the array of the abscissas.
Implements concepts::QuadratureRule1d.
Reimplemented in concepts::QuadratureRule1dTrapeze.
Definition at line 62 of file quadRule.hh.
|
protectedvirtual |
Returns information in an output stream.
Reimplemented from concepts::OutputOperator.
Returns the number of points.
Implements concepts::QuadratureRule1d.
Definition at line 145 of file quadRule.hh.
print weights and abscissas to stdout
Reimplemented in concepts::AdaptiveQuadratureRule1d< ruleType >.
Returns a pointer into the array of the weights.
Implements concepts::QuadratureRule1d.
Reimplemented in concepts::QuadratureRule1dTrapeze.
Definition at line 63 of file quadRule.hh.
|
protectedinherited |
Abscissas.
Definition at line 66 of file quadRule.hh.
|
protectedinherited |
Weights.
Definition at line 68 of file quadRule.hh.