4#ifndef SVMP_FE_QUADRATURE_RULE_H
5#define SVMP_FE_QUADRATURE_RULE_H
49namespace svmp::FE::quadrature {
95 std::vector<QuadPoint>
points,
99 std::size_t
num_points() const noexcept {
return points_.size(); }
122 double weight(std::size_t i)
const noexcept {
return weights_[i]; }
125 std::span<const QuadPoint>
points() const noexcept {
return points_; }
128 std::span<const double>
weights() const noexcept {
return weights_; }
135 int polynomial_exactness_;
136 std::vector<QuadPoint> points_;
137 std::vector<double> weights_;
Fixed-size vector types for FE computations, backed by Eigen.
Fundamental type definitions for the finite element library.
Owning value type for quadrature rules on canonical reference cells.
Definition QuadratureRule.h:82
std::span< const double > weights() const noexcept
Return a read-only view of all weights in point order.
Definition QuadratureRule.h:128
std::size_t dimension() const
Return the reference dimension and active QuadPoint component count.
Definition QuadratureRule.cpp:66
std::span< const QuadPoint > points() const noexcept
Return a read-only view of all points in integration order.
Definition QuadratureRule.h:125
std::size_t num_points() const noexcept
Return the number of point/weight pairs.
Definition QuadratureRule.h:99
double reference_cell_measure() const
Return the reference-cell measure derived from cell_family().
Definition QuadratureRule.cpp:71
int polynomial_exactness() const noexcept
Return the declared total-degree polynomial exactness.
Definition QuadratureRule.h:102
double weight(std::size_t i) const noexcept
Return the weight paired with point i without bounds checking.
Definition QuadratureRule.h:122
svmp::CellFamily cell_family() const noexcept
Return the canonical reference-cell family.
Definition QuadratureRule.h:110
const QuadPoint & point(std::size_t i) const noexcept
Return point i without bounds checking.
Definition QuadratureRule.h:116
CellFamily
Minimal fallback for svmp::CellFamily when the Mesh library is unavailable.
Definition Types.h:44
math::Vector< double, 3 > QuadPoint
Three-component coordinate used for every reference quadrature point.
Definition QuadratureRule.h:61
Eigen::Matrix< T, static_cast< int >(N), 1 > Vector
Fixed-size column vector for element-level computations.
Definition Vector.h:51