Gauss–Legendre quadrature points and weights in one spatial dimension.
More...
#include <one_dimensional.hxx>
|
static constexpr unsigned int | n_points () |
| Calculate the amount of quadrature points at compile time. More...
|
|
template<typename return_t = double> |
static constexpr std::array< return_t, n_points()> | points () |
| Gauss–Legendre quadrature points on one-dimensional unit interval. More...
|
|
template<typename return_t = double> |
static constexpr std::array< return_t, n_points()> | weights () |
| Gauss–Legendre quadrature weights on one-dimensional unit interval. More...
|
|
template<unsigned int quad_deg>
class TPP::Quadrature::GaussLegendre< quad_deg >
Gauss–Legendre quadrature points and weights in one spatial dimension.
- Template Parameters
-
quad_deg | Desired degree of accuracy. |
- Authors
- Andreas Rupp, Heidelberg University, 2021.
◆ n_points()
template<unsigned int quad_deg>
Calculate the amount of quadrature points at compile time.
Naive implementation to calculate the amount of needed quadrature points if a rule of accuracy quad_deg
is desired in one dimension.
- Return values
-
n_quad_points | Amount of needed quadrature points. |
◆ points()
template<unsigned int quad_deg>
template<typename return_t = double>
Gauss–Legendre quadrature points on one-dimensional unit interval.
Returns the quadrature points of the quadrature rule with accuracy order quad_deg
on the one-dimensional unit interval \([0,1]\).
- Template Parameters
-
return_t | Floating type specification. Default is double. |
- Return values
-
quad_points | std::array containing the quadrature points. |
◆ transform_points()
template<unsigned int quad_deg>
template<typename return_t >
|
inlinestaticconstexprprivate |
Transform array of quadrature points in interval \([-1,1]\) to \([0,1]\).
◆ transform_weights()
template<unsigned int quad_deg>
template<typename return_t >
|
inlinestaticconstexprprivate |
Transform array of quadrature weights for interval \([-1,1]\) to \([0,1]\).
◆ weights()
template<unsigned int quad_deg>
template<typename return_t = double>
Gauss–Legendre quadrature weights on one-dimensional unit interval.
Returns the quadrature weights of the quadrature rule with accuracy order quad_deg
on the one-dimensional unit interval \([0,1]\).
- Template Parameters
-
return_t | Floating type specification. Default is double. |
- Return values
-
quad_weights | std::array containing the quadrature weights. |
The documentation for this class was generated from the following file:
- /home/runner/work/HyperHDG/HyperHDG/submodules/tensor_product_polynomials.git/include/tpp/quadrature/one_dimensional.hxx