AMDiS  0.3
The Adaptive Multi-Dimensional Simulation Toolbox
EigenVector< T > Class Template Reference

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

template<class Basis >
 EigenVector (Basis const &)
 Constructor. Constructs new BaseVector.
 
BaseVector const & vector () const
 Return the data-vector vector_.
 
BaseVectorvector ()
 Return the data-vector vector_.
 
size_type size () const
 Return the current size of the vector_.
 
template<class SizeInfo >
void init (SizeInfo const &size, bool clear)
 Resize the vector_ to the size s.
 
template<class MultiIndex >
value_typeat (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.
 
void forEach (Func &&f)
 Apply the functor f to all entries of the container.
 
void forEach (Func &&f) const
 Apply the functor f to all entries of the container.
 

Additional Inherited Members

- Protected Member Functions inherited from VectorBase< EigenVector< T > >
 VectorBase ()=default
 

Detailed Description

template<class T>
class AMDiS::EigenVector< T >

The basic container that stores a base vector and a corresponding basis.


The documentation for this class was generated from the following file: