IFEM 90A354
GaussQuadrature.h
Go to the documentation of this file.
1// $Id$
2//==============================================================================
12//==============================================================================
13
14#ifndef _GAUSS_QUADRATURE_H
15#define _GAUSS_QUADRATURE_H
16
17
23{
24public:
27 static const double* getCoord (int n) { return getGauss(n,0); }
30 static const double* getWeight(int n) { return getGauss(n,1); }
31
32private:
36 static const double* getGauss(int n, int i);
37};
38
39#endif
Gaussian quadrature rules in one dimension.
Definition GaussQuadrature.h:23
static const double * getGauss(int n, int i)
Returns the gauss point coordinates or weights.
Definition GaussQuadrature.C:199
static const double * getCoord(int n)
Get gauss point coordinates in the domain [-1,1].
Definition GaussQuadrature.h:27
static const double * getWeight(int n)
Get gauss point weights.
Definition GaussQuadrature.h:30