Function Dune::GDT::make_discrete_function

template<class GV, size_t r, size_t rC, class R>
int Dune::GDT::make_discrete_function(const SpaceInterface<GV, r, rC, R> &space, const std::string nm = <recovery-expr>("dune.gdt.discretefunction"))

Creates a DiscreteFunction with a freshly allocated default DoF vector for the range field.

template<class V, class GV, size_t r, size_t rC, class R>
int Dune::GDT::make_discrete_function(const SpaceInterface<GV, r, rC, R> &space, const int &vector, const std::string nm = <recovery-expr>("dune.gdt.constdiscretefunction"))

Creates a ConstDiscreteFunction from a space and an immutable DoF vector.

template<class V, class GV, size_t r, size_t rC, class R>
int Dune::GDT::make_discrete_function(const SpaceInterface<GV, r, rC, R> &space, int &&vector, const std::string nm = <recovery-expr>("dune.gdt.discretefunction"))

Creates a DiscreteFunction taking ownership of a moved-in DoF vector.

template<class V, class GV, size_t r, size_t rC, class R>
int Dune::GDT::make_discrete_function(const SpaceInterface<GV, r, rC, R> &space, int &vector, const std::string nm = <recovery-expr>("dune.gdt.discretefunction"))

Creates a DiscreteFunction referencing an existing mutable DoF vector.

template<class VectorType, class GV, size_t r, size_t rC, class R>
DiscreteFunction<VectorType, GV, r, rC, R> Dune::GDT::make_discrete_function(const SpaceInterface<GV, r, rC, R> &space, const std::string nm = <recovery-expr>("dune.gdt.discretefunction"))

Creates a DiscreteFunction with a freshly allocated DoF vector of the explicitly given vector type.