Basic class for numerical integration. More...
#include <quadrature.hh>


Public Member Functions | |
| const Real * | abscissas () const |
| Returns a pointer into the array of the abscissas. | |
| uint | n () const |
| Returns the number of quadrature points. | |
| Quadrature (uint n) | |
| Constructor. | |
| const Real * | weights () const |
| Returns a pointer into the array of the weights. | |
Static Public Member Functions | |
| static std::string | storedPoints () |
| Lists the integration orders (points) which have been computed so far. | |
Protected Member Functions | |
| virtual std::ostream & | info (std::ostream &os) const |
| Returns information in an output stream. | |
Protected Attributes | |
| Real * | abscissas_ |
| Abscissas. | |
| Real * | weights_ |
| Weights. | |
Private Member Functions | |
| bool | find_ () |
Private Attributes | |
| uint | n_ |
| Number of quadrature points. | |
Static Private Attributes | |
| static std::map< uint, Real * > | abscissas_H |
| Hash of the already computed values of the abscissas of this rule. | |
| static std::map< uint, Real * > | weights_H |
| Hash of the already computed values of the weights of this rule. | |
Basic class for numerical integration.
This class provides the datastructures for the weights and abscissas and the methods to get them.
The values are computed in the template instantiations.
| type | Template parameter: type of the quadrature rule. Can take the values
|
Requesting the same quadrature rule with the same amount of integration points several times does not harm: the values are only stored once (internally).
Definition at line 95 of file quadrature.hh.
| concepts::Quadrature< type >::Quadrature | ( | uint | n | ) |
Constructor.
Computes the quadrature points.
| n | Number of entries to be computed |
| const Real* concepts::Quadrature< type >::abscissas | ( | ) | const [inline] |
Returns a pointer into the array of the abscissas.
Definition at line 103 of file quadrature.hh.
| bool concepts::Quadrature< type >::find_ | ( | ) | [private] |
| virtual std::ostream& concepts::Quadrature< type >::info | ( | std::ostream & | os | ) | const [protected, virtual] |
Returns information in an output stream.
Reimplemented from concepts::OutputOperator.
| uint concepts::Quadrature< type >::n | ( | ) | const [inline] |
Returns the number of quadrature points.
Definition at line 107 of file quadrature.hh.
| static std::string concepts::Quadrature< type >::storedPoints | ( | ) | [static] |
Lists the integration orders (points) which have been computed so far.
| const Real* concepts::Quadrature< type >::weights | ( | ) | const [inline] |
Returns a pointer into the array of the weights.
Definition at line 105 of file quadrature.hh.
Real* concepts::Quadrature< type >::abscissas_ [protected] |
Abscissas.
Definition at line 117 of file quadrature.hh.
std::map<uint, Real*> concepts::Quadrature< type >::abscissas_H [static, private] |
Hash of the already computed values of the abscissas of this rule.
The hash is static, ie. the data is available to all instances of this class.
Definition at line 125 of file quadrature.hh.
uint concepts::Quadrature< type >::n_ [private] |
Number of quadrature points.
Definition at line 134 of file quadrature.hh.
Real* concepts::Quadrature< type >::weights_ [protected] |
Weights.
Definition at line 119 of file quadrature.hh.
std::map<uint, Real*> concepts::Quadrature< type >::weights_H [static, private] |
Hash of the already computed values of the weights of this rule.
The hash is static, ie. the data is available to all instances of this class.
Definition at line 131 of file quadrature.hh.