1#ifndef DUNE_FEM_FUNCTION_COMMON_COMMON_HH 
    2#define DUNE_FEM_FUNCTION_COMMON_COMMON_HH 
    4#include <dune/fem/function/common/function.hh> 
    5#include <dune/fem/space/common/functionspace.hh> 
   16    template< 
class FunctionSpace >
 
   19    template< 
class ct, 
int dimworld >
 
   20    class Identity< FunctionSpace< ct, ct, dimworld, dimworld > >
 
   21      : 
public Function< FunctionSpace< ct, ct, dimworld, dimworld >, Identity< FunctionSpace< ct, ct, dimworld, dimworld > > >
 
   23      typedef Function< FunctionSpace< ct, ct, dimworld, dimworld >, Identity< FunctionSpace< ct, ct, dimworld, dimworld > > > BaseType;
 
   26      typedef typename BaseType::DomainType DomainType;
 
   27      typedef typename BaseType::RangeType RangeType;
 
   28      typedef typename BaseType::JacobianRangeType JacobianRangeType;
 
   29      typedef typename BaseType::HessianRangeType HessianRangeType;
 
   31      void evaluate ( 
const DomainType &x, RangeType &value )
 const 
   36      void jacobian ( 
const DomainType &x, JacobianRangeType &jacobian )
 const 
   38        jacobian = JacobianRangeType( ct( 0 ) );
 
   39        for( 
int i = 0; i < dimworld; ++i )
 
   40          jacobian[ i ][ i ] = 1;
 
   43      void hessian ( 
const DomainType &x, HessianRangeType &hessian )
 const 
   45        hessian = HessianRangeType( ct( 0 ) );
 
Dune namespace.
Definition: alignedallocator.hh:13