11#include <dune/functions/functionspacebases/lagrangebasis.hh>
12#include <dune/functions/functionspacebases/powerbasis.hh>
13#include <dune/grid/yaspgrid.hh>
14#include <dune/python/common/typeregistry.hh>
15#include <dune/python/pybind11/eigen.h>
16#include <dune/python/pybind11/functional.h>
17#include <dune/python/pybind11/pybind11.h>
18#include <dune/python/pybind11/stl.h>
36 template <
class Basis,
class... options>
37 void registerBasis(pybind11::handle scope, pybind11::class_<Basis, options...> cls) {
38 using pybind11::operator
""_a;
48 "flat", [](
Basis& self) {
return self.
flat(); }, pybind11::return_value_policy::reference);
51 "untouched", [](
Basis& self) {
return self.
untouched(); }, pybind11::return_value_policy::reference);
Definition of the LinearElastic class for finite element mechanics computations.
void registerBasis(pybind11::handle scope, pybind11::class_< Basis, options... > cls)
Register a Python wrapper for an Ikarus basis class.
Definition: python/basis/basis.hh:37
void init(int argc, char **argv, bool enableFileLogger=true)
Initializes the Ikarus framework.
Definition: init.hh:81
Definition: flatassembler.hh:20
Wrapper class for a hierarchical basis constructed from a pre-basis.
Definition: utils/basis.hh:29
typename PreBasis::GridView GridView
The type of the grid view.
Definition: utils/basis.hh:32
auto & untouched()
Returns a reference to the untouched version of the basis.
Definition: utils/basis.hh:61
PreBasis_ PreBasis
The type of the untouched pre basis.
Definition: utils/basis.hh:31
decltype(Dune::Functions::DefaultGlobalBasis(Ikarus::flatPreBasis(std::declval< PreBasis >()))) FlatBasis
The type of the flattened basis.
Definition: utils/basis.hh:36
decltype(Dune::Functions::DefaultGlobalBasis(std::declval< PreBasis >())) UntouchedBasis
The type of the untouched basis.
Definition: utils/basis.hh:34
auto & flat()
Returns a reference to the flat version of the basis.
Definition: utils/basis.hh:54
Wrapper around Dune-functions global basis.