Function Dune::GDT::make_discrete_function¶
Function template Dune::GDT::make_discrete_function¶
-
template<class GV, size_t r, size_t rC, class R>
DiscreteFunction<typename XT::LA::Container<R>::VectorType, GV, r, rC, R> Dune::GDT::make_discrete_function(const SpaceInterface<GV, r, rC, R> &space, const std::string nm = "dune.gdt.discretefunction")¶ Creates a DiscreteFunction with a freshly allocated default DoF vector for the range field.
Function template Dune::GDT::make_discrete_function¶
-
template<class V, class GV, size_t r, size_t rC, class R>
ConstDiscreteFunction<typename XT::LA::VectorInterface<V>::derived_type, GV, r, rC, R> Dune::GDT::make_discrete_function(const SpaceInterface<GV, r, rC, R> &space, const XT::LA::VectorInterface<V> &vector, const std::string nm = "dune.gdt.constdiscretefunction")¶ Creates a ConstDiscreteFunction from a space and an immutable DoF vector.
Function template Dune::GDT::make_discrete_function¶
-
template<class V, class GV, size_t r, size_t rC, class R>
DiscreteFunction<typename XT::LA::VectorInterface<V>::derived_type, GV, r, rC, R> Dune::GDT::make_discrete_function(const SpaceInterface<GV, r, rC, R> &space, XT::LA::VectorInterface<V> &&vector, const std::string nm = "dune.gdt.discretefunction")¶ Creates a DiscreteFunction taking ownership of a moved-in DoF vector.
Function template Dune::GDT::make_discrete_function¶
-
template<class V, class GV, size_t r, size_t rC, class R>
DiscreteFunction<typename XT::LA::VectorInterface<V>::derived_type, GV, r, rC, R> Dune::GDT::make_discrete_function(const SpaceInterface<GV, r, rC, R> &space, XT::LA::VectorInterface<V> &vector, const std::string nm = "dune.gdt.discretefunction")¶ Creates a DiscreteFunction referencing an existing mutable DoF vector.
Function template Dune::GDT::make_discrete_function¶
-
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 = "dune.gdt.discretefunction")¶ Creates a DiscreteFunction with a freshly allocated DoF vector of the explicitly given vector type.