Function Dune::GDT::make_constant_operator

Function template Dune::GDT::make_constant_operator

template<class AssemblyGridViewType, class SGV, int s_r, int s_rC, class F, class RGV, int r_r, int 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, const std::array<bool, 3> &logging_state = XT::Common::default_logger_state())

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

Function template Dune::GDT::make_constant_operator

template<class AssemblyGridViewType, class SGV, int s_r, int s_rC, class F, class RGV, int r_r, int 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, const std::array<bool, 3> &logging_state = XT::Common::default_logger_state())

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

Function template Dune::GDT::make_constant_operator

template<class GV, int r, int 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, const std::array<bool, 3> &logging_state = XT::Common::default_logger_state())

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

Function template Dune::GDT::make_constant_operator

template<class GV, int r, int 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, const std::array<bool, 3> &logging_state = XT::Common::default_logger_state())

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