KASKADE 7 development version
Public Types | Public Member Functions | Static Public Attributes | List of all members
Kaskade::ScalarProductView< Function > Class Template Reference

(Scalar) product of two functions. More...

#include <functionviews.hh>

Detailed Description

template<class Function>
class Kaskade::ScalarProductView< Function >

(Scalar) product of two functions.

This implements the Function concept. Given two Functions \( f_1,f2:\Omega\to K^m \), it represents the scalar product Function \( g(x)=f_1(x)^H f_2(x) \).

Definition at line 377 of file functionviews.hh.

Public Types

typedef Function::Scalar Scalar
 
typedef Dune::FieldVector< Scalar, componentsValueType
 

Public Member Functions

 ScalarProductView (Function const &f1_, Function const &f2_)
 
template<class Cell >
int order (Cell const &cell) const
 
template<class Cell >
ValueType value (Cell const &cell, Dune::FieldVector< typename Cell::Geometry::ctype, Cell::dimension > const &localCoordinate) const
 

Static Public Attributes

static int const components = Function::components
 

Member Typedef Documentation

◆ Scalar

template<class Function >
typedef Function::Scalar Kaskade::ScalarProductView< Function >::Scalar

Definition at line 385 of file functionviews.hh.

◆ ValueType

Definition at line 387 of file functionviews.hh.

Constructor & Destructor Documentation

◆ ScalarProductView()

template<class Function >
Kaskade::ScalarProductView< Function >::ScalarProductView ( Function const &  f1_,
Function const &  f2_ 
)
inline

The functions f1 and f2 have to exist during the lifetime of this view.

Definition at line 383 of file functionviews.hh.

Member Function Documentation

◆ order()

template<class Function >
template<class Cell >
int Kaskade::ScalarProductView< Function >::order ( Cell const &  cell) const
inline

Definition at line 390 of file functionviews.hh.

◆ value()

template<class Function >
template<class Cell >
ValueType Kaskade::ScalarProductView< Function >::value ( Cell const &  cell,
Dune::FieldVector< typename Cell::Geometry::ctype, Cell::dimension > const &  localCoordinate 
) const
inline

Definition at line 399 of file functionviews.hh.

Member Data Documentation

◆ components

template<class Function >
int const Kaskade::ScalarProductView< Function >::components = Function::components
static

Definition at line 386 of file functionviews.hh.


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