Adapter returning ||f1(x)-f2(x)||^2 for two given grid functions.
More...
#include <dune/pdelab/gridfunctionspace/gridfunctionadapter.hh>
template<typename T1, typename T2>
class Dune::PDELab::DifferenceSquaredAdapter< T1, T2 >
Adapter returning ||f1(x)-f2(x)||^2 for two given grid functions.
- Template Parameters
-
T1 | a grid function type |
T2 | a grid function type |
- Examples
- recipe-grid-function-operations.cc, and recipe-operator-splitting.cc.
◆ GridViewType
◆ ImplementationTag
◆ Output
◆ Traits
template<typename T1 , typename T2 >
◆ DifferenceSquaredAdapter()
template<typename T1 , typename T2 >
◆ dataSetType()
Return the data set type of this function.
◆ evaluate()
template<typename T1 , typename T2 >
Evaluate the GridFunction at given position.
Evaluates components of the grid function at the given position and returns these values in a vector.
- Parameters
-
[in] | e | The entity to evaluate on |
[in] | x | The position in entity-local coordinates |
[out] | y | The result of the evaluation |
◆ getGridView()
template<typename T1 , typename T2 >
◆ setDataSetType()
void Dune::PDELab::GridFunctionOutputParameters::setDataSetType |
( |
Output::DataSetType |
dataSetType | ) |
|
|
inlineinherited |
Set the data set type of this function.
The documentation for this class was generated from the following file: