19 #ifndef QUADRATURE_HH_ 20 #define QUADRATURE_HH_ 38 template<
unsigned int dim>
45 Quadrature(
const unsigned int n_quadrature_points = 0);
57 void resize(
const unsigned int n_q_points);
60 const unsigned int size()
const;
63 const arma::vec::fixed<dim> &
point(
const unsigned int i)
const;
73 void set_point(
const unsigned int i,
const arma::vec::fixed<dim> &p);
76 double weight(
const unsigned int i)
const;
82 void set_weight(
const unsigned int i,
const double w);
103 template<
unsigned int dim>
109 template<
unsigned int dim>
115 template<
unsigned int dim>
118 arma::vec::fixed<dim> v;
124 template<
unsigned int dim>
129 template<
unsigned int dim>
131 const unsigned int i)
const {
135 template<
unsigned int dim>
140 template<
unsigned int dim>
146 template<
unsigned int dim>
151 template<
unsigned int dim>
156 template<
unsigned int dim>
162 template<
unsigned int dim>
void set_weight(const unsigned int i, const double w)
Sets individual quadrature weight.
std::vector< double > weights
List of weights to the quadrature points.
Quadrature(const unsigned int n_quadrature_points=0)
Constructor.
std::vector< arma::vec::fixed< dim > > quadrature_points
List of quadrature points.
const std::vector< arma::vec::fixed< dim > > & get_points() const
Return a reference to the whole array of quadrature points.
Base class for quadrature rules on simplices in arbitrary dimensions.
virtual ~Quadrature()
Virtual destructor.
double weight(const unsigned int i) const
Returns the ith weight.
void resize(const unsigned int n_q_points)
Modify the number of quadrature points.
void set_point(const unsigned int i, const arma::vec::fixed< dim > &p)
Sets individual quadrature point coordinates.
const unsigned int size() const
Returns number of quadrature points.
const std::vector< double > & get_weights() const
Return a reference to the whole array of weights.
const arma::vec::fixed< dim > & point(const unsigned int i) const
Returns the ith quadrature point.