DUNE-FEM (unstable)

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

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

Public Member Functions

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...
 

Protected Member Functions

 QuadPtsBase (const int maxp)
 constructor initializing the points for all orders
 

Detailed Description

one-dimensional quadrature points and their weights

QuadPtsBase is an array of one-dimensional 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
inline

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
inline

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
inline

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
inline

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 file:
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Nov 20, 23:30, 2024)