Stores fixed views to arrays of 1D quadrature points and weights.
More...
#include </home/docs/checkouts/readthedocs.org/user_builds/axom/checkouts/main/src/axom/core/numerics/quadrature.hpp>
Stores fixed views to arrays of 1D quadrature points and weights.
◆ nodes()
Accessor for the full array of quadrature nodes.
◆ weights()
Accessor for the full array of quadrature weights.
◆ node()
| AXOM_HOST_DEVICE double axom::numerics::QuadratureRule::node |
( |
size_t |
idx | ) |
const |
|
inline |
Accessor for quadrature nodes.
◆ weight()
| AXOM_HOST_DEVICE double axom::numerics::QuadratureRule::weight |
( |
size_t |
idx | ) |
const |
|
inline |
Accessor for quadrature weights.
◆ getNumPoints()
◆ get_gauss_legendre
Computes or accesses a precomputed 1D quadrature rule of Gauss-Legendre points.
- Parameters
-
| [in] | npts | The number of points in the rule |
A Gauss-Legendre rule with npts points can exactly integrate polynomials of order 2 * npts - 1
- Note
- If this method has already been called for a given order, it will reuse the same quadrature points without needing to recompute them
- Returns
- The
QuadratureRule object which contains axom::ArrayView<double>'s of stored nodes and weights
The documentation for this class was generated from the following file:
- /home/docs/checkouts/readthedocs.org/user_builds/axom/checkouts/main/src/axom/core/numerics/quadrature.hpp