Function Dune::GDT::make_constant_operator

template<class AssemblyGridViewType, class SGV, size_t s_r, size_t s_rC, class F, class RGV, size_t r_r, size_t r_rC, class V>
auto Dune::GDT::make_constant_operator(const AssemblyGridViewType &assembly_grid_view, const SpaceInterface<SGV, s_r, s_rC, F> &source_space, const SpaceInterface<RGV, r_r, r_rC, F> &range_space, const int &value, const std::string &logging_prefix = <recovery-expr>(""), const std::array<bool, 3> &logging_state = <recovery-expr>())

Creates a ConstantOperator from an assembly grid view, source and range spaces and a constant value vector.

template<class AssemblyGridViewType, class SGV, size_t s_r, size_t s_rC, class F, class RGV, size_t r_r, size_t r_rC, class VectorType>
auto Dune::GDT::make_constant_operator(const AssemblyGridViewType &assembly_grid_view, const SpaceInterface<SGV, s_r, s_rC, F> &source_space, const SpaceInterface<RGV, r_r, r_rC, F> &range_space, const VectorType *&&value_ptr, const std::string &logging_prefix = <recovery-expr>(""), const std::array<bool, 3> &logging_state = <recovery-expr>())

Creates a ConstantOperator from an assembly grid view and source and range spaces, taking ownership of the given value vector.

template<class GV, size_t r, size_t rC, class F, class V>
auto Dune::GDT::make_constant_operator(const SpaceInterface<GV, r, rC, F> &space, const int &value, const std::string &logging_prefix = <recovery-expr>(""), const std::array<bool, 3> &logging_state = <recovery-expr>())

Creates a ConstantOperator on a single space (used as both source and range) from a constant value vector.

template<class GV, size_t r, size_t rC, class F, class VectorType>
auto Dune::GDT::make_constant_operator(const SpaceInterface<GV, r, rC, F> &space, VectorType *&&value_ptr, const std::string &logging_prefix = <recovery-expr>(""), const std::array<bool, 3> &logging_state = <recovery-expr>())

Creates a ConstantOperator on a single space (used as both source and range), taking ownership of the given value vector.