Wrapper class for a hierarchical basis constructed from a pre-basis. More...
#include <ikarus/utils/basis.hh>
Public Types | |
using | PreBasis = PB |
The type of the untouched pre basis. More... | |
using | GridView = typename PreBasis::GridView |
The type of the grid view. More... | |
using | UntouchedBasis = decltype(Dune::Functions::DefaultGlobalBasis(std::declval< PreBasis >())) |
The type of the untouched basis. More... | |
using | FlatBasis = decltype(Dune::Functions::DefaultGlobalBasis(Ikarus::flatPreBasis(std::declval< PreBasis >()))) |
The type of the flattened basis. More... | |
Public Member Functions | |
BasisHandler (const PreBasis &pb) | |
Constructs a Basis object from a pre-basis. More... | |
auto & | flat () |
Returns a reference to the flat version of the basis. More... | |
auto & | untouched () |
Returns a reference to the untouched version of the basis. More... | |
const auto & | flat () const |
Returns a const reference to the flat version of the basis. More... | |
const auto & | untouched () const |
Returns a const reference to the untouched version of the basis. More... | |
const auto & | gridView () const |
Returns a const reference to the grid view associated with the untouched basis. More... | |
auto & | gridView () |
Returns a reference to the grid view associated with the untouched basis. More... | |
This class provides a convenient wrapper for a hierarchical basis constructed from a pre-basis. It contains both the original untouched basis and a flattened version of the basis.
PB | The type of the pre-basis used to construct the hierarchical basis. |
using Ikarus::BasisHandler< PB >::FlatBasis = decltype(Dune::Functions::DefaultGlobalBasis( Ikarus::flatPreBasis(std::declval<PreBasis>()))) |
using Ikarus::BasisHandler< PB >::GridView = typename PreBasis::GridView |
using Ikarus::BasisHandler< PB >::PreBasis = PB |
using Ikarus::BasisHandler< PB >::UntouchedBasis = decltype(Dune::Functions::DefaultGlobalBasis(std::declval<PreBasis>())) |
|
inlineexplicit |
Constructs a Basis object from a given pre-basis, creating both the untouched and flat versions of the basis.
pb | The pre-basis used to construct the hierarchical basis. |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |