Dune Core Modules (2.6.0)

Dune::LocalInterpolationVirtualInterface< DomainType, RangeType > Class Template Referenceabstract

virtual base class for a local interpolation More...

#include <dune/localfunctions/common/virtualinterface.hh>

Public Types

typedef Dune::VirtualFunction< DomainType, RangeType > FunctionType
 type of virtual function to interpolate
 
typedef RangeType::field_type CoefficientType
 type of the coefficient vector in the interpolate method
 

Public Member Functions

virtual void interpolate (const FunctionType &f, std::vector< CoefficientType > &out) const =0
 determine coefficients interpolating a given function More...
 
template<class F >
void interpolate (const F &f, std::vector< CoefficientType > &out) const
 determine coefficients interpolating a given function More...
 

Detailed Description

template<class DomainType, class RangeType>
class Dune::LocalInterpolationVirtualInterface< DomainType, RangeType >

virtual base class for a local interpolation

This class defines the interface using pure virtual methods. It also contains the interpolate method with function type as template parameter.

Member Function Documentation

◆ interpolate() [1/2]

template<class DomainType , class RangeType >
template<class F >
void Dune::LocalInterpolationVirtualInterface< DomainType, RangeType >::interpolate ( const F &  f,
std::vector< CoefficientType > &  out 
) const
inline

determine coefficients interpolating a given function

This is the pure virtual method taking a VirtualFunction.

Parameters
[in]fFunction instance used to interpolate.
[out]outResulting coefficients vector. This uses the pure virtual method by wrapping the template argument into a VirtualFunction

References Dune::LocalInterpolationVirtualInterfaceBase< DomainType, RangeType >::interpolate().

◆ interpolate() [2/2]

template<class DomainType , class RangeType >
virtual void Dune::LocalInterpolationVirtualInterface< DomainType, RangeType >::interpolate ( const FunctionType f,
std::vector< CoefficientType > &  out 
) const
pure virtual

determine coefficients interpolating a given function

This is the pure virtual method taking a VirtualFunction.

Parameters
[in]fFunction instance used to interpolate.
[out]outResulting coefficients vector.

Implements Dune::LocalInterpolationVirtualInterfaceBase< DomainType, RangeType >.

Implemented in Dune::LocalInterpolationVirtualImp< DomainType, RangeType, Imp >, and Dune::LocalInterpolationVirtualImp< typename LocalBasisTraits::DomainType, typename LocalBasisTraits::RangeType, typename Imp::Traits::LocalInterpolationType >.


The documentation for this class was generated from the following file:
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Dec 26, 23:30, 2024)