ug4
|
#include <newton_cotes.h>
Public Member Functions | |
NewtonCotes (size_t order) | |
constructor More... | |
~NewtonCotes () | |
destructor More... | |
Public Member Functions inherited from ug::QuadratureRule< 1 > | |
size_t | order () const |
returns the order More... | |
const MathVector< dim > & | point (size_t i) const |
returns i'th integration point More... | |
const MathVector< dim > * | points () const |
returns all positions in an array of size() More... | |
QuadratureRule () | |
constructor More... | |
size_t | size () const |
number of integration points More... | |
number | weight (size_t i) const |
return the i'th weight More... | |
const number * | weights () const |
returns all weights in an array of size() More... | |
virtual | ~QuadratureRule () |
destructor More... | |
Additional Inherited Members | |
Public Types inherited from ug::QuadratureRule< 1 > | |
typedef MathVector< dim > | position_type |
Position Type in Reference Element Space. More... | |
typedef number | weight_type |
Type of weights. More... | |
Static Public Attributes inherited from ug::QuadratureRule< 1 > | |
static const int | dim |
Dimension of Reference Element. More... | |
Protected Attributes inherited from ug::QuadratureRule< 1 > | |
size_t | m_numPoints |
number of points More... | |
int | m_order |
Order of rule. More... | |
const MathVector< dim > * | m_pvPoint |
Integration points. More... | |
const number * | m_pvWeight |
Weights. More... | |
This class provides Newton-Cotes integrals for the 1d line [0,1]. See e.g. http://en.wikipedia.org/wiki/Newton�Cotes_formulas for details.
The implemented rules are auto-generate using mathematica. If higher orders are needed, rerun the corresponding file.
ug::NewtonCotes::NewtonCotes | ( | size_t | order | ) |
ug::NewtonCotes::~NewtonCotes | ( | ) |
destructor
References ug::QuadratureRule< 1 >::m_pvPoint, and ug::QuadratureRule< 1 >::m_pvWeight.