#include <quadrature_gausslegendre.h>
|
void | Initialize (unsigned int N, bool verbose, unsigned int max_iters, double tol) |
|
|
static std::vector< double > | FindRoots (unsigned int N, unsigned int max_iters=1000, double tol=1.0e-12) |
|
Gauss-Legendre quadrature.
Definition at line 13 of file quadrature_gausslegendre.h.
◆ QuadratureGaussLegendre() [1/3]
◆ QuadratureGaussLegendre() [2/3]
chi_math::QuadratureGaussLegendre::QuadratureGaussLegendre |
( |
QuadratureOrder |
in_order, |
|
|
bool |
verbose = false , |
|
|
unsigned int |
max_iters = 1000 , |
|
|
double |
tol = 1.0e-12 |
|
) |
| |
|
explicit |
◆ QuadratureGaussLegendre() [3/3]
chi_math::QuadratureGaussLegendre::QuadratureGaussLegendre |
( |
unsigned int |
N, |
|
|
bool |
verbose = false , |
|
|
unsigned int |
max_iters = 1000 , |
|
|
double |
tol = 1.0e-12 |
|
) |
| |
|
explicit |
Populates the abscissae and weights for a Gauss-Legendre quadrature given the number of desired quadrature points. The order of the quadrature will be 2N-1.
Definition at line 93 of file quadrature_gausslegendre.cc.
◆ FindRoots()
std::vector< double > chi_math::QuadratureGaussLegendre::FindRoots |
( |
unsigned int |
N, |
|
|
unsigned int |
max_iters = 1000 , |
|
|
double |
tol = 1.0e-12 |
|
) |
| |
|
staticprivate |
Finds the roots of the Legendre polynomial.
The algorithm is that depicted in:
[1] Barrera-Figueroa, et al., "Multiple root finder algorithm for Legendre
and Chebyshev polynomials via Newton's method", Annales Mathematicae et Informaticae, 33 (2006) pp. 3-13.
- Parameters
-
N | Is the order of the polynomial. |
roots | Is a reference to the roots. |
max_iters | Maximum newton iterations to perform for each root. Default: 1000. |
tol | Tolerance at which the newton iteration will be terminated. Default: 1.0e-12. |
- Author
- Jan
Definition at line 161 of file quadrature_gausslegendre.cc.
◆ GetInputParameters()
◆ Initialize()
void chi_math::QuadratureGaussLegendre::Initialize |
( |
unsigned int |
N, |
|
|
bool |
verbose, |
|
|
unsigned int |
max_iters, |
|
|
double |
tol |
|
) |
| |
|
private |
Populates the abscissae and weights for a Gauss-Legendre quadrature given the number of desired quadrature points.
Definition at line 105 of file quadrature_gausslegendre.cc.
The documentation for this class was generated from the following files: