DUNE PDELab (git)
localvector.hh
Go to the documentation of this file.
394 const typename LocalVector<T,Tag,W>::BaseContainer& accessBaseContainer(const LocalVector<T,Tag,W>& c)
A container for storing data associated with the degrees of freedom of a LocalFunctionSpace.
Definition: localvector.hh:184
value_type two_norm() const
Return Euclidean norm of vector.
Definition: localvector.hh:307
WeightedAccumulationView weightedAccumulationView(weight_type weight)
Returns a WeighedAccumulationView of this container with the given weight.
Definition: localvector.hh:214
BaseContainer::reference reference
The reference type of this container.
Definition: localvector.hh:198
auto data() const
Access underlying container, const version.
Definition: localvector.hh:250
value_type dot(const LocalVector &other) const
Dot product with other vector.
Definition: localvector.hh:297
BaseContainer::const_reference const_reference
The const reference type of this container.
Definition: localvector.hh:201
size_type size() const
The size of the container.
Definition: localvector.hh:318
BaseContainer::size_type size_type
The size type of this container.
Definition: localvector.hh:195
void assign(size_type size, const T &value)
Resize the container to size and assign the passed value to all entries.
Definition: localvector.hh:330
LocalVector()
Default constructor.
Definition: localvector.hh:348
WeightedVectorAccumulationView< LocalVector > WeightedAccumulationView
An accumulate-only view of this container that automatically applies a weight to all contributions.
Definition: localvector.hh:211
std::vector< T > BaseContainer
The type of the underlying storage container.
Definition: localvector.hh:188
W weight_type
The weight type of this container.
Definition: localvector.hh:208
const BaseContainer & base() const
Returns the underlying, std::vector-like storage container (const version).
Definition: localvector.hh:342
LocalVector & axpy(const value_type alpha, const LocalVector &other)
Calculate axpy operation this -> this += alpha*other.
Definition: localvector.hh:256
const_reference operator()(const LFS &lfs, size_type i) const
Access the value in this container associated with the i-th degree of freedom of the LocalFunctionSpa...
Definition: localvector.hh:238
LocalVector & operator+=(const LocalVector &other)
Adds two vectors.
Definition: localvector.hh:274
void resize(size_type size)
Resize the container.
Definition: localvector.hh:324
LocalVector & operator*=(const value_type &v)
Multiplies all entries by v.
Definition: localvector.hh:284
auto data()
Access underlying container.
Definition: localvector.hh:244
BaseContainer::value_type value_type
The value type of this container.
Definition: localvector.hh:191
LocalVector(size_type n)
Construct a LocalVector with size n.
Definition: localvector.hh:352
LocalVector(size_type n, const value_type &v)
Construct a LocalVector with size n and initialize all entries with v.
Definition: localvector.hh:357
reference operator()(const LFS &lfs, size_type i)
Access the value in this container associated with the i-th degree of freedom of the LocalFunctionSpa...
Definition: localvector.hh:226
BaseContainer & base()
Returns the underlying, std::vector-like storage container.
Definition: localvector.hh:336
LocalVector & operator=(const value_type &v)
Assigns v to all entries.
Definition: localvector.hh:267
An accumulate-only view on a local vector that automatically takes into account an accumulation weigh...
Definition: localvector.hh:28
auto data() const
Access underlying container, const version.
Definition: localvector.hh:159
Container & container()
Returns the container (of type LocalVector) that this view is based on.
Definition: localvector.hh:127
Container::size_type size_type
The size_type of the underlying container.
Definition: localvector.hh:55
C Container
The type of the underlying LocalVector.
Definition: localvector.hh:32
void accumulate(const LFS &lfs, size_type n, value_type v)
Applies the current weight to v and adds the result to the n-th degree of freedom of the lfs.
Definition: localvector.hh:79
Container::value_type value_type
The value type of the entries.
Definition: localvector.hh:38
BaseContainer & base()
Returns the storage container of the underlying LocalVector.
Definition: localvector.hh:140
void rawAccumulate(const LFS &lfs, size_type n, value_type v)
Adds v to the n-th degree of freedom of the lfs without applying the current weight.
Definition: localvector.hh:91
const Container & container() const
Returns the container (of type LocalVector) that this view is based on (const version).
Definition: localvector.hh:134
weight_type weight() const
Returns the weight associated with this view.
Definition: localvector.hh:62
Container::weight_type weight_type
The type of the weight applied when accumulating contributions.
Definition: localvector.hh:41
const BaseContainer & base() const
Returns the storage container of the underlying LocalVector (const version).
Definition: localvector.hh:147
Container::BaseContainer BaseContainer
The type of the storage container underlying the LocalVector.
Definition: localvector.hh:35
void resetModified()
Resets the modification state of the view to not modified.
Definition: localvector.hh:121
WeightedAccumulationView weightedAccumulationView(weight_type weight)
Returns a WeighedAccumulationView with some weight in addition to this view's weight.
Definition: localvector.hh:49
WeightedVectorAccumulationView(C &container, weight_type weight)
Constructor.
Definition: localvector.hh:98
WeightedVectorAccumulationView WeightedAccumulationView
Export this type for uniform handling of the containers themselves and their views.
Definition: localvector.hh:45
size_type size() const
Returns the size of the underlying container.
Definition: localvector.hh:105
auto data()
Access underlying container.
Definition: localvector.hh:153
bool modified() const
Returns whether this view has been written to.
Definition: localvector.hh:111
void setWeight(weight_type weight)
Resets the weighting coefficient of the view.
Definition: localvector.hh:72
constexpr index_constant< 1 > _1
Compile time index with value 1.
Definition: indices.hh:55
|
Legal Statements / Impressum |
Hosted by TU Dresden |
generated with Hugo v0.111.3
(Nov 12, 23:30, 2024)