Function Dune::GDT::make_discrete_function

Function template Dune::GDT::make_discrete_function

template<class GV, int r, int rC, class R>
int Dune::GDT::make_discrete_function(const SpaceInterface<GV, r, rC, R> &space, const std::string nm)

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, int r, int rC, class R>
int Dune::GDT::make_discrete_function(const SpaceInterface<GV, r, rC, R> &space, const int &vector, const std::string nm)

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

Function template Dune::GDT::make_discrete_function

template<class V, class GV, int r, int rC, class R>
int Dune::GDT::make_discrete_function(const SpaceInterface<GV, r, rC, R> &space, int &&vector, const std::string nm)

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

Function template Dune::GDT::make_discrete_function

template<class V, class GV, int r, int rC, class R>
int Dune::GDT::make_discrete_function(const SpaceInterface<GV, r, rC, R> &space, int &vector, const std::string nm)

Creates a DiscreteFunction referencing an existing mutable DoF vector.

Function template Dune::GDT::make_discrete_function

template<class VectorType, class GV, int r, int 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)

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