9#ifndef INCGa7241ee797424d98ad339341b02bca70
10#define INCGa7241ee797424d98ad339341b02bca70
12#include <lf/base/base.h>
169 void PrintInfo(std::ostream& o,
int out_ctrl = 0)
const {
170 o <<
weights_.size() <<
"-point QR";
172 o <<
", weights = " <<
weights_.transpose() <<
", nodes = \n" <<
points_;
Represents a reference element with all its properties.
constexpr dim_t Dimension() const
Return the dimension of this reference element.
Represents a Quadrature Rule over one of the Reference Elements.
QuadRule(base::RefEl ref_el, Eigen::MatrixXd points, Eigen::VectorXd weights, quadDegree_t degree)
Construct a new quadrature rule by specifying reference element, points, weights and degree of exactn...
quadDegree_t Degree() const
Return the degree of exactness of this Quadrature Rule.
const Eigen::VectorXd & Weights() const
All quadrature weights as a vector.
void PrintInfo(std::ostream &o, int out_ctrl=0) const
Output function controlled by variable out_ctrl;.
QuadRule(QuadRule &&)=default
QuadRule & operator=(const QuadRule &)=default
base::RefEl RefEl() const
The reference element over which this QuadRule integrates.
const Eigen::MatrixXd & Points() const
All quadrature points as column vectors.
QuadRule & operator=(QuadRule &&)=default
QuadRule()
Default constructor creating an "invalid quadrature rule".
QuadRule(const QuadRule &)=default
unsigned int Order() const
Return the order of the quadrature rule.
base::size_type NumPoints() const
Return the total number of quadrature points (num of columns of points/weights)
unsigned int size_type
general type for variables related to size of arrays
Rules for numerical quadrature on reference entity shapes.
unsigned int quadDegree_t
std::ostream & operator<<(std::ostream &stream, const lf::quad::QuadRule &quadrule)
Output operator for quadrature rules.