DUNE-FEM (unstable)

one-dimensional Gauss points and their weights More...

#include <dune/fem/quadrature/gausspoints.hh>

Public Member Functions

 GaussPts ()
 constructor initializing the Gauss points for all orders
 
double point (int m, int i) const
 obtain the i-th point of the m-th quadrature More...
 
double weight (int m, int i) const
 obtain the i-th weight of the m-th quadrature More...
 
int order (int m) const
 obtain the order of the m-th quadrature More...
 
int power (int y, int d) const
 a simple power method More...
 

Static Public Attributes

static const int MAXP =10
 number of available quadratures
 
static const int highestOrder =19
 highest quadrature order within the array
 

Detailed Description

one-dimensional Gauss points and their weights

GaussPtr is an array of one-dimensional Gauss quadratures for the interval [0,1]. The index of a quadrature equals its number of quadrature points (so there is no 0-th quadrature).

Note
This class implements the Singleton pattern

Member Function Documentation

◆ order()

int Dune::Fem::QuadPtsBase::order ( int  m) const
inlineinherited

obtain the order of the m-th quadrature

Parameters
[in]mindex of the quadrature
Returns
a double representing the weight i-th Gauss point

◆ point()

double Dune::Fem::QuadPtsBase::point ( int  m,
int  i 
) const
inlineinherited

obtain the i-th point of the m-th quadrature

Parameters
[in]mindex of the quadrature
[in]inumber of the point within the quadrature (0 <= i < m)
Returns
a double in [0,1] representing the i-th Gauss point

◆ power()

int Dune::Fem::QuadPtsBase::power ( int  y,
int  d 
) const
inlineinherited

a simple power method

Note
This method does not use a template meta program
Parameters
[in]ybase \(y\) of the power
[in]dexponent \(d\) of the power
Returns
\(y^d\)

◆ weight()

double Dune::Fem::QuadPtsBase::weight ( int  m,
int  i 
) const
inlineinherited

obtain the i-th weight of the m-th quadrature

Parameters
[in]mindex of the quadrature
[in]inumber of the weight within the quadrature (0 <= i < m)
Returns
a double representing the weight i-th Gauss point

The documentation for this class was generated from the following files:
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.80.0 (May 4, 22:30, 2024)