35 double qweight = 1.0/n_quadrature_points;
36 this->
weights.resize(n_quadrature_points,qweight);
38 for(
unsigned int q=0; q < n_quadrature_points; q++)
39 this->point<1>(q) =
arma::vec({0.5*qweight + q*qweight});
43 #endif // QMIDPOINT_HH_ QMidpoint(const unsigned int n_quadrature_points)
Empty constructor.
Base class for quadrature rules on simplices in arbitrary dimensions.
Global macros to enhance readability and debugging, general constants.
std::vector< double > weights
List of weights to the quadrature points.
Basic definitions of numerical quadrature rules.
Class representing midpoint rule, with uniformly distributed points of the same weight.
Armor::array quadrature_points
List of quadrature points.