Dune::DifferentiableFunctionDefault< DT, RT, n, m > Class Template Reference
[Functions Hierarchy]

#include <functions.hh>

Inheritance diagram for Dune::DifferentiableFunctionDefault< DT, RT, n, m >:

Dune::DifferentiableFunction< DT, RT, n, m > Dune::FunctionBase< DT, RT, n, m > List of all members.

Detailed Description

template<class DT, class RT, int n, int m>
class Dune::DifferentiableFunctionDefault< DT, RT, n, m >

A class providing default implementations for some method in class Function.


Public Types

enum  
 export dimension of domain and range
typedef DT DomainFieldType
 export type for domain components
typedef RT RangeFieldType
 export type for range components

Public Member Functions

RT derivative (int comp, const Dune::FieldVector< int, n > &d, const Dune::FieldVector< DT, n > &x) const
 default implementation for evaluation of partial derivative
virtual int order () const=0
 return number of partial derivatives that can be taken
virtual RT eval (int comp, const Dune::FieldVector< DT, n > &x) const=0
 evaluate single component comp at global point x
virtual void evalall (const Dune::FieldVector< DT, n > &x, Dune::FieldVector< RT, m > &y) const=0
 evaluate all components at point x and store result in y

Member Function Documentation

template<class DT, class RT, int n, int m>
RT Dune::DifferentiableFunctionDefault< DT, RT, n, m >::derivative ( int  comp,
const Dune::FieldVector< int, n > &  d,
const Dune::FieldVector< DT, n > &  x 
) const [inline, virtual]

default implementation for evaluation of partial derivative

Evaluate partial derivative of a component of the vector-valued function using second order finite differences

Parameters:
[in] comp number of component that should be differentiated
[in] d vector giving order of derivative for each variable
[in] x position where derivative is to be evaluated
Returns:
value of the derivative

Implements Dune::DifferentiableFunction< DT, RT, n, m >.

template<class DT, class RT, int n, int m>
virtual int Dune::DifferentiableFunction< DT, RT, n, m >::order (  )  const [pure virtual, inherited]

return number of partial derivatives that can be taken

A DifferentiableFunction can say how many derivatives exist and can be safely evaluated.

Implemented in Dune::DifferentiableGridFunctionAdapter< G, RT, m >, Dune::C1Function< DT, RT, n, m >, Dune::H1Function< DT, RT, n, m >, Dune::HdivFunction< DT, RT, n, m >, Dune::ElementwiseCInfinityFunction< G, RT, m >, Dune::P1Function< GV, RT, LC, m >, Dune::P2Function< GridType, RT, IS, m >, Dune::H1Function< G::LeafGridView::Grid::ctype, RT, G::LeafGridView::Grid::dimension, m >, Dune::H1Function< G::LeafGridView::Grid::ctype, RT, G::LeafGridView::Grid::dimension, 1 >, Dune::H1Function< GV::Grid::ctype, RT, GV::Grid::dimension, 1 >, Dune::H1Function< G::ctype, RT, G::dimension, m >, Dune::H1Function< G::LevelGridView::Grid::ctype, RT, G::LevelGridView::Grid::dimension, 1 >, Dune::H1Function< GridType::ctype, RT, GridType::dimension, m >, Dune::H1Function< GV::Grid::ctype, RT, GV::Grid::dimension, m >, Dune::H1Function< G::LevelGridView::Grid::ctype, RT, G::LevelGridView::Grid::dimension, m >, Dune::ElementwiseCInfinityFunction< G::LeafGridView::Grid, RT, m >, Dune::ElementwiseCInfinityFunction< G::LevelGridView::Grid, RT, m >, Dune::ElementwiseCInfinityFunction< GridType, RT, m >, Dune::ElementwiseCInfinityFunction< GV::Grid, RT, m >, Dune::P1Function< G::LevelGridView, RT, Dune::LevelCommunicate< G >, m >, Dune::P1Function< G::LeafGridView, RT, Dune::LeafCommunicate< G >, m >, Dune::P2Function< G, RT, G::template Codim< 0 >::LevelIndexSet, m >, and Dune::P2Function< G, RT, G::template Codim< 0 >::LeafIndexSet, m >.

template<class DT, class RT, int n, int m>
virtual RT Dune::FunctionBase< DT, RT, n, m >::eval ( int  comp,
const Dune::FieldVector< DT, n > &  x 
) const [pure virtual, inherited]

template<class DT, class RT, int n, int m>
virtual void Dune::FunctionBase< DT, RT, n, m >::evalall ( const Dune::FieldVector< DT, n > &  x,
Dune::FieldVector< RT, m > &  y 
) const [pure virtual, inherited]

evaluate all components at point x and store result in y

Evaluation function for all components at once.

Parameters:
[in] x position to be evaluated
[out] y result vector to be filled

Implemented in Dune::FunctionDefault< DT, RT, n, m >.


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

Generated on 6 Jan 2009 with Doxygen (ver 1.5.1) [logfile].