MFEM  v3.3.2 Finite element discretization library
mfem::Poly_1D Class Reference

`#include <fe.hpp>`

class  Basis

## Public Member Functions

Poly_1D ()

const double * GetPoints (const int p, const int type)
Get the coordinates of the points of the given Quadrature1D type. More...

const double * OpenPoints (const int p, const int type=Quadrature1D::GaussLegendre)

const double * ClosedPoints (const int p, const int type=Quadrature1D::GaussLobatto)

BasisGetBasis (const int p, const int type)
Get a Poly_1D::Basis object of the given degree and Quadrature1D type. More...

BasisOpenBasis (const int p, const int type=Quadrature1D::GaussLegendre)

BasisClosedBasis (const int p, const int type=Quadrature1D::GaussLobatto)

~Poly_1D ()

## Static Public Member Functions

static const int * Binom (const int p)
Get a poiner to an array containing the binomial coefficients "p choose k" for k=0,...,p for the given p. More...

static void CalcBasis (const int p, const double x, double *u)

static void CalcBasis (const int p, const double x, double *u, double *d)

static double CalcDelta (const int p, const double x)

static void ChebyshevPoints (const int p, double *x)

static void CalcBinomTerms (const int p, const double x, const double y, double *u)
Compute the terms in the expansion of the binomial (x + y)^p. More...

static void CalcBinomTerms (const int p, const double x, const double y, double *u, double *d)

static void CalcDBinomTerms (const int p, const double x, const double y, double *d)

static void CalcBernstein (const int p, const double x, double *u)

static void CalcBernstein (const int p, const double x, double *u, double *d)

## Detailed Description

Definition at line 1364 of file fe.hpp.

## Constructor & Destructor Documentation

 mfem::Poly_1D::Poly_1D ( )
inline

Definition at line 1399 of file fe.hpp.

 mfem::Poly_1D::~Poly_1D ( )

Definition at line 6594 of file fe.cpp.

## Member Function Documentation

 const int * mfem::Poly_1D::Binom ( const int p )
static

Get a poiner to an array containing the binomial coefficients "p choose k" for k=0,...,p for the given p.

Definition at line 6338 of file fe.cpp.

 static void mfem::Poly_1D::CalcBasis ( const int p, const double x, double * u )
inlinestatic

Definition at line 1434 of file fe.hpp.

 static void mfem::Poly_1D::CalcBasis ( const int p, const double x, double * u, double * d )
inlinestatic

Definition at line 1443 of file fe.hpp.

 static void mfem::Poly_1D::CalcBernstein ( const int p, const double x, double * u )
inlinestatic

Definition at line 1466 of file fe.hpp.

 static void mfem::Poly_1D::CalcBernstein ( const int p, const double x, double * u, double * d )
inlinestatic

Definition at line 1468 of file fe.hpp.

 void mfem::Poly_1D::CalcBinomTerms ( const int p, const double x, const double y, double * u )
static

Compute the terms in the expansion of the binomial (x + y)^p.

Definition at line 6387 of file fe.cpp.

 void mfem::Poly_1D::CalcBinomTerms ( const int p, const double x, const double y, double * u, double * d )
static

Compute the terms in the expansion of the binomial (x + y)^p and their derivatives with respect to x assuming that dy/dx = -1.

Definition at line 6416 of file fe.cpp.

 void mfem::Poly_1D::CalcDBinomTerms ( const int p, const double x, const double y, double * d )
static

Compute the derivatives (w.r.t. x) of the terms in the expansion of the binomial (x + y)^p assuming that dy/dx = -1.

Definition at line 6451 of file fe.cpp.

 static double mfem::Poly_1D::CalcDelta ( const int p, const double x )
inlinestatic

Definition at line 1450 of file fe.hpp.

 void mfem::Poly_1D::ChebyshevPoints ( const int p, double * x )
static

Definition at line 6355 of file fe.cpp.

 Basis& mfem::Poly_1D::ClosedBasis ( const int p, const int type = `Quadrature1D::GaussLobatto` )
inline

Definition at line 1428 of file fe.hpp.

 const double* mfem::Poly_1D::ClosedPoints ( const int p, const int type = `Quadrature1D::GaussLobatto` )
inline

Definition at line 1414 of file fe.hpp.

 Poly_1D::Basis & mfem::Poly_1D::GetBasis ( const int p, const int type )

Get a Poly_1D::Basis object of the given degree and Quadrature1D type.

Parameters
 p the polynomial degree of the basis. type the Quadrature1D type.
Returns
a reference to an object of type Poly_1D::Basis that represents the requested nodal basis.

Definition at line 6573 of file fe.cpp.

 const double * mfem::Poly_1D::GetPoints ( const int p, const int type )

Get the coordinates of the points of the given Quadrature1D type.

Parameters
 p the polynomial degree; the number of points is `p+1`. type the Quadrature1D type.
Returns
a pointer to an array containing the `p+1` coordiantes of the quadrature points.

Definition at line 6552 of file fe.cpp.

 Basis& mfem::Poly_1D::OpenBasis ( const int p, const int type = `Quadrature1D::GaussLegendre` )
inline

Definition at line 1425 of file fe.hpp.

 const double* mfem::Poly_1D::OpenPoints ( const int p, const int type = `Quadrature1D::GaussLegendre` )
inline

Definition at line 1411 of file fe.hpp.

The documentation for this class was generated from the following files: