Interface for shape functions on a specific reference element. More...
#include <dune/localfunctions/common/basis.hh>
Public Types | |
typedef T | Traits |
Export type traits. | |
Public Member Functions | |
unsigned int | size () const |
Number of shape functions. | |
void | evaluateFunction (const typename Traits::DomainType &in, std::vector< typename Traits::RangeType > &out) const |
Evaluate all basis function at given position. | |
template<typename C > | |
Traits::RangeType | evaluateCoeffs (const typename Traits::DomainType &in, const std::vector< C > &coeffs) const |
Evaluate basis with coefficients at given position. | |
unsigned int | order () const |
Polynomial order of the shape functions. |
Interface for shape functions on a specific reference element.
This class represents a set of shape functions defined on one particular reference element. It returns global values.
Imp | Implementation of the interface used via CRTP | |
T | Instance of LocalBasisTraits providing type information. |
typedef T Dune::C0BasisInterface< Imp, T >::Traits |
Export type traits.
Reimplemented in Dune::C1BasisInterface< Imp, T >, Dune::C0SimpleBasis< LB >, Dune::C1SimpleBasis< LB, Geo >, and Dune::C1BasisInterface< C1SimpleBasis< LB, Geo > >.
Traits::RangeType Dune::C0BasisInterface< Imp, T >::evaluateCoeffs | ( | const typename Traits::DomainType & | in, | |
const std::vector< C > & | coeffs | |||
) | const [inline] |
Evaluate basis with coefficients at given position.
Evaluates all shape functions at the given (local) position and return the (global) value of the sum weighted with some coefficients.
C | The type of the coefficients |
[in] | in | Where to evaluate in local (reference element) coordinates. |
[in] | coeffs | The coefficients. |
void Dune::C0BasisInterface< Imp, T >::evaluateFunction | ( | const typename Traits::DomainType & | in, | |
std::vector< typename Traits::RangeType > & | out | |||
) | const [inline] |
Evaluate all basis function at given position.
Evaluates all shape functions at the given (local) position and returns the (global) values in a vector.
[in] | in | Where to evaluate in local (reference element) coordinates. |
[out] | out | The resulting global values, one per shape function. |
Reimplemented in Dune::C0SimpleBasis< LB >, and Dune::C1SimpleBasis< LB, Geo >.
unsigned int Dune::C0BasisInterface< Imp, T >::order | ( | ) | const [inline] |
Polynomial order of the shape functions.
Reimplemented in Dune::C0SimpleBasis< LB >, and Dune::C1SimpleBasis< LB, Geo >.
unsigned int Dune::C0BasisInterface< Imp, T >::size | ( | ) | const [inline] |
Number of shape functions.
Reimplemented in Dune::C0SimpleBasis< LB >, and Dune::C1SimpleBasis< LB, Geo >.