Flow123d  jenkins-Flow123d-windows32-release-multijob-51
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 47 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 267 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 317 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 303 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 80 of file fe_p.hh.


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