3#ifndef DUNE_PDELAB_FUNCTION_SQR_HH
4#define DUNE_PDELAB_FUNCTION_SQR_HH
8#include <dune/pdelab/common/function.hh>
21 typename GF::Traits::GridViewType,
22 typename GF::Traits::RangeFieldType, 1,
23 FieldVector<typename GF::Traits::RangeFieldType, 1>
25 SqrGridFunctionAdapter<GF>
29 typename GF::Traits::GridViewType,
30 typename GF::Traits::RangeFieldType, 1,
46 void evaluate(
const typename Traits::ElementType &e,
47 const typename Traits::DomainType &x,
48 typename Traits::RangeType &y)
const
50 typename GF::Traits::RangeType y_;
55 const typename Traits::GridViewType& getGridView()
const {
56 return gf.getGridView();
59 template<
typename Time>
60 void setTime(Time time) { gf.setTime(time); }
vector space out of a tensor product of fields.
Definition: fvector.hh:91
leaf of a function tree
Definition: function.hh:302
T Traits
Export type traits.
Definition: function.hh:193
Take square of a GridFunction.
Definition: sqr.hh:27
Implements a vector constructed from a given type representing a field and a compile-time given size.
Dune namespace.
Definition: alignedallocator.hh:13
RF RangeFieldType
Export type for range field.
Definition: function.hh:53
traits class holding the function signature, same as in local function
Definition: function.hh:183