Public Member Functions | |
| Gauss1D (int n) | |
| Gauss1D (int n, double a, double b) | |
| int | nPoints () const |
| const Array< double > & | nodes () const |
| const Array< double > & | weights () const |
Static Public Member Functions | |
| static bool | unitTest () |
Private Member Functions | |
| void | computeWeights (int n, double a, double b) |
Private Attributes | |
| Array< double > | nodes_ |
| Array< double > | weights_ |
Get abscissas and weights for Gauss-Legendre quadrature on a line segement.
Definition at line 56 of file SundanceGauss1D.hpp.
| Gauss1D::Gauss1D | ( | int | n | ) |
create an n-point rule on the interval [-1, 1]
Definition at line 55 of file SundanceGauss1D.cpp.
References computeWeights().
| Gauss1D::Gauss1D | ( | int | n, |
| double | a, | ||
| double | b | ||
| ) |
create an n-point rule on the interval [a, b]
Definition at line 61 of file SundanceGauss1D.cpp.
References computeWeights().
| void Gauss1D::computeWeights | ( | int | n, |
| double | a, | ||
| double | b | ||
| ) | [private] |
Definition at line 69 of file SundanceGauss1D.cpp.
References nodes_, and weights_.
Referenced by Gauss1D().
| const Array<double>& Sundance::Gauss1D::nodes | ( | ) | const [inline] |
get the abscissas
Definition at line 67 of file SundanceGauss1D.hpp.
References nodes_.
Referenced by Sundance::GaussianQuadrature::getLineRule(), Sundance::TriangleQuadrature::getNonsymmetricPoints(), Sundance::BrickQuadrature::getPoints(), Sundance::QuadQuadrature::getPoints(), and unitTest().
| int Sundance::Gauss1D::nPoints | ( | ) | const [inline] |
return the number of points in the rule
Definition at line 65 of file SundanceGauss1D.hpp.
References nodes_.
Referenced by Sundance::TriangleQuadrature::getNonsymmetricPoints(), Sundance::BrickQuadrature::getPoints(), Sundance::QuadQuadrature::getPoints(), and unitTest().
| bool Gauss1D::unitTest | ( | ) | [static] |
Definition at line 107 of file SundanceGauss1D.cpp.
| const Array<double>& Sundance::Gauss1D::weights | ( | ) | const [inline] |
get the weights
Definition at line 69 of file SundanceGauss1D.hpp.
References weights_.
Referenced by Sundance::GaussianQuadrature::getLineRule(), Sundance::TriangleQuadrature::getNonsymmetricPoints(), Sundance::BrickQuadrature::getPoints(), Sundance::QuadQuadrature::getPoints(), and unitTest().
Array<double> Sundance::Gauss1D::nodes_ [private] |
Definition at line 75 of file SundanceGauss1D.hpp.
Referenced by computeWeights(), nodes(), and nPoints().
Array<double> Sundance::Gauss1D::weights_ [private] |
Definition at line 76 of file SundanceGauss1D.hpp.
Referenced by computeWeights(), and weights().