5 #include <dune/common/ftraits.hh> 7 #include <amdis/Output.hpp> 8 #include <amdis/common/FakeContainer.hpp> 9 #include <amdis/linearalgebra/VectorBase.hpp> 10 #include <amdis/typetree/MultiIndex.hpp> 34 using field_type =
typename Dune::FieldTraits<value_type>::field_type;
38 template <
class Basis>
56 return vector_.size();
61 template <
class SizeInfo>
71 template <
class MultiIndex>
76 return vector_.coeffRef(i);
80 template <
class MultiIndex>
85 return vector_.coeff(i);
value_type const & at(MultiIndex const &idx) const
Access the entry i of the vector with read-access.
Definition: VectorBackend.hpp:81
constexpr bool MultiIndex
A multi-index type.
Definition: Concepts.hpp:150
typename BaseVector::Scalar value_type
The type of the elements of the DOFVector.
Definition: VectorBackend.hpp:24
BaseVector & vector()
Return the data-vector vector_.
Definition: VectorBackend.hpp:48
void test_exit_dbg(bool condition, Args &&... args)
call assert_msg, in debug mode only
Definition: Output.hpp:205
Eigen::Matrix< T, Eigen::Dynamic, 1 > BaseVector
The type of the base vector.
Definition: VectorBackend.hpp:21
value_type & at(MultiIndex const &idx)
Access the entry i of the vector with write-access.
Definition: VectorBackend.hpp:72
Contains all classes needed for solving linear and non linear equation systems.
Definition: AdaptBase.hpp:6
EigenVector(Basis const &)
Constructor. Constructs new BaseVector.
Definition: VectorBackend.hpp:39
The basic container that stores a base vector and a corresponding basis.
Definition: VectorBackend.hpp:16
typename BaseVector::Index size_type
The index/size - type.
Definition: VectorBackend.hpp:27
void init(SizeInfo const &size, bool clear)
Resize the vector_ to the size s.
Definition: VectorBackend.hpp:62
CRTP base class for flat vector backends.
Definition: VectorBase.hpp:15
BaseVector const & vector() const
Return the data-vector vector_.
Definition: VectorBackend.hpp:42
size_type size() const
Return the current size of the vector_.
Definition: VectorBackend.hpp:54