The basic container that stores a base vector data. More...
#include <VectorBackend.hpp>
Inherits VectorBase< MTLVector< T > >.
Public Types | |
using | BaseVector = mtl::dense_vector< T > |
The type of the base vector. | |
using | value_type = typename BaseVector::value_type |
The type of the elements of the DOFVector. | |
using | size_type = typename BaseVector::size_type |
The index/size - type. | |
Public Member Functions | |
MTLVector (DefaultIndexDistribution const &) | |
Constructor. Constructs new BaseVector. | |
BaseVector const & | vector () const |
Return the data-vector vector_. | |
BaseVector & | vector () |
Return the data-vector vector_. | |
std::size_t | 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 read-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< MTLVector< 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< MTLVector< T > > | |
VectorBase ()=default | |
The basic container that stores a base vector data.