The basic container that stores a base vector and a corresponding basis. More...
#include <VectorBackend.hpp>
Inherits VectorBase< EigenVector< T > >.
Public Types | |
using | BaseVector = Eigen::Matrix< T, Eigen::Dynamic, 1 > |
The type of the base vector. | |
using | value_type = typename BaseVector::Scalar |
The type of the elements of the DOFVector. | |
using | size_type = typename BaseVector::Index |
The index/size - type. | |
Public Member Functions | |
EigenVector (DefaultIndexDistribution const &) | |
Constructor. Constructs new BaseVector. | |
BaseVector const & | vector () const |
Return the data-vector vector_. | |
BaseVector & | vector () |
Return the data-vector vector_. | |
size_type | size () const |
Return the current size of the vector_. | |
template<class Basis > | |
void | init (Basis const &basis, bool clear) |
Resize the vector_ to the size s . | |
template<class MultiIndex > | |
value_type & | at (MultiIndex const &idx) |
Access the entry i of the vector with write-access. | |
template<class MultiIndex > | |
value_type const & | at (MultiIndex const &idx) const |
Access the entry i of the vector with read-access. | |
Public Member Functions inherited from VectorBase< EigenVector< T > > | |
void | finish () |
void | synchronize () |
void | insert (MultiIndex const &idx, ValueType const &value, Assign assign) |
Insert or add value at position idx , using the passed assign functor. | |
void | gather (IndexRange const &localInd, OutputIterator buffer) const |
Gather values from the vector into the output range buffer decribed as an output iterator. | |
void | scatter (IndexRange const &localInd, LocalVec const &vec, FakeContainer< bool, true >, Assign assign) |
Scatter the values from the local vec into the container using the passed assign functor. | |
void | scatter (IndexRange const &localInd, LocalVec const &vec, MaskRange const &mask, Assign assign) |
void | forEach (IndexRange const &localInd, Func &&f) const |
Apply the functor f to all entries of the list of multi-indices localInd . | |
void | forEach (IndexRange const &localInd, Func &&f) |
Apply the functor f to all entries of the list of multi-indices localInd . | |
Additional Inherited Members | |
Protected Member Functions inherited from VectorBase< EigenVector< T > > | |
VectorBase ()=default | |
The basic container that stores a base vector and a corresponding basis.