dune-localfunctions  2.2.0
Public Types | Public Member Functions
Dune::P0LocalBasis< D, R, d > Class Template Reference

Constant shape function. More...

#include <dune/localfunctions/lagrange/p0/p0localbasis.hh>

List of all members.

Public Types

typedef LocalBasisTraits< D, d,
Dune::FieldVector< D, d >, R,
1, Dune::FieldVector< R, 1 >
, Dune::FieldMatrix< R, 1, d >, 0 > 
Traits
 export type traits for function signature

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 shape functions.
void evaluateJacobian (const typename Traits::DomainType &in, std::vector< typename Traits::JacobianType > &out) const
 Evaluate Jacobian of all shape functions.
unsigned int order () const
 Polynomial order of the shape functions.

Detailed Description

template<class D, class R, int d>
class Dune::P0LocalBasis< D, R, d >

Constant shape function.

Defines the constant scalar shape function in d dimensions. Is valid on any type of reference element.

Template Parameters:
DType to represent the field in the domain.
RType to represent the field in the range.
dDomain dimension

Member Typedef Documentation

template<class D , class R , int d>
typedef LocalBasisTraits<D,d,Dune::FieldVector<D,d>,R,1,Dune::FieldVector<R,1>, Dune::FieldMatrix<R,1,d>, 0> Dune::P0LocalBasis< D, R, d >::Traits

export type traits for function signature


Member Function Documentation

template<class D , class R , int d>
void Dune::P0LocalBasis< D, R, d >::evaluateFunction ( const typename Traits::DomainType in,
std::vector< typename Traits::RangeType > &  out 
) const
inline

Evaluate all shape functions.

template<class D , class R , int d>
void Dune::P0LocalBasis< D, R, d >::evaluateJacobian ( const typename Traits::DomainType in,
std::vector< typename Traits::JacobianType > &  out 
) const
inline

Evaluate Jacobian of all shape functions.

template<class D , class R , int d>
unsigned int Dune::P0LocalBasis< D, R, d >::order ( ) const
inline

Polynomial order of the shape functions.

template<class D , class R , int d>
unsigned int Dune::P0LocalBasis< D, R, d >::size ( ) const
inline

number of shape functions


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