Flow123d  release_2.2.0-20-gb8056ca
Public Member Functions | Private Attributes | List of all members
PolynomialSpace< degree, dim > Class Template Reference

Space of polynomial functions. More...

#include <fe_p.hh>

Collaboration diagram for PolynomialSpace< degree, dim >:
Collaboration graph
[legend]

Public Member Functions

 PolynomialSpace ()
 Constructor. More...
 
const double basis_value (unsigned int i, const arma::vec::fixed< dim > &p) const
 Value of the i th basis function at point p. More...
 
const arma::vec::fixed< dim > basis_grad (unsigned int i, const arma::vec::fixed< dim > &p) const
 Gradient of the i th basis function at point p. More...
 

Private Attributes

std::vector< arma::uvec::fixed< dim > > powers
 Coefficients of basis functions. More...
 

Detailed Description

template<unsigned int degree, unsigned int dim>
class PolynomialSpace< degree, dim >

Space of polynomial functions.

This class serves for evaluation of the value and gradient of a polynomial of order degree in dim variables.

Definition at line 36 of file fe_p.hh.

Constructor & Destructor Documentation

template<unsigned int degree, unsigned int dim>
PolynomialSpace< degree, dim >::PolynomialSpace ( )

Constructor.

Creates the coefficients of the basis.

Definition at line 256 of file fe_p.hh.

Member Function Documentation

template<unsigned int degree, unsigned int dim>
const arma::vec::fixed< dim > PolynomialSpace< degree, dim >::basis_grad ( unsigned int  i,
const arma::vec::fixed< dim > &  p 
) const

Gradient of the i th basis function at point p.

Parameters
iNumber of the basis function.
pPoint at which the function is evaluated.

Definition at line 306 of file fe_p.hh.

template<unsigned int degree, unsigned int dim>
const double PolynomialSpace< degree, dim >::basis_value ( unsigned int  i,
const arma::vec::fixed< dim > &  p 
) const

Value of the i th basis function at point p.

Parameters
iNumber of the basis function.
pPoint at which the function is evaluated.

Definition at line 292 of file fe_p.hh.

Member Data Documentation

template<unsigned int degree, unsigned int dim>
std::vector<arma::uvec::fixed<dim> > PolynomialSpace< degree, dim >::powers
private

Coefficients of basis functions.

Powers of x, y, z, ... in the i-th basis function are stored in powers[i].

Definition at line 69 of file fe_p.hh.


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