6#ifndef MATH_INTEGRATION_TRIANGLEQUADRATURERULE_HPP
7#define MATH_INTEGRATION_TRIANGLEQUADRATURERULE_HPP
11#include "math/Vector2.hpp"
30 assert(rule_order >= 1);
59 virtual const std::vector<RealType>&
do_weights()
const = 0;
A "rule" (weights and quadrature points) for computing quadrature over triangular domains.
int order() const
Returns the order of this rule.
const std::vector< RealType > & weights() const
Returns the vector of weights. These sum to 1 and there is one weight for each point returned by quad...
virtual int do_order() const =0
Derived classes shall return the order (>= 1) of this rule.
virtual const std::vector< Vector2d > & do_quadrature_points() const =0
Derived classes shall return the vector of quadrature points. Each of these Vector2d objects represen...
virtual const std::vector< RealType > & do_weights() const =0
Derived classes shall return the vector of weights. The sum of all weights must equal 1....
const std::vector< Vector2d > & quadrature_points() const
Returns the vector of quadrature points. These are returned as the first two barycentric coordinates ...
This basic Periodic Table class was originally taken from the data.cpp file in OpenBabel.