Dune Core Modules (2.3.1)
bvector.hh
Go to the documentation of this file.
133 typename PromotionTraits<field_type,typename OtherB::field_type>::PromotedType operator* (const block_vector_unmanaged<OtherB,OtherA>& y) const
135 typedef typename PromotionTraits<field_type,typename OtherB::field_type>::PromotedType PromotedType;
154 typename PromotionTraits<field_type,typename OtherB::field_type>::PromotedType dot(const block_vector_unmanaged<OtherB,OtherA>& y) const
156 typedef typename PromotionTraits<field_type,typename OtherB::field_type>::PromotedType PromotedType;
275 };
322 "capacity must be an unsigned integral type (be aware, that this constructor does not set the default value!)" );
606 };
947 };
Implements several basic array containers.
Definition: bvector.hh:585
A allocator_type
export the allocator type
Definition: bvector.hh:597
BlockVectorWindow & operator=(const BlockVectorWindow &a)
assignment
Definition: bvector.hh:647
BlockVectorWindow(const BlockVectorWindow &a)
copy constructor, this has reference semantics!
Definition: bvector.hh:628
@ blocklevel
The number of blocklevels we contain.
Definition: bvector.hh:605
void set(size_type _n, B *_p)
set size and pointer
Definition: bvector.hh:680
block_vector_unmanaged< B, A >::Iterator Iterator
make iterators available as types
Definition: bvector.hh:609
B::field_type field_type
export the type representing the field
Definition: bvector.hh:591
BlockVectorWindow(B *_p, size_type _n)
make array from given pointer and size
Definition: bvector.hh:621
B block_type
export the type representing the components
Definition: bvector.hh:594
BlockVectorWindow()
makes empty array
Definition: bvector.hh:617
A::size_type size_type
The type for the index access.
Definition: bvector.hh:600
BlockVectorWindow(const block_vector_unmanaged< B, A > &_a)
construct from base class object with reference semantics!
Definition: bvector.hh:635
block_vector_unmanaged< B, A >::ConstIterator ConstIterator
make iterators available as types
Definition: bvector.hh:612
@ blocklevel
The number of blocklevel we contain.
Definition: bvector.hh:274
block_vector_unmanaged< B, A >::ConstIterator ConstIterator
make iterators available as types
Definition: bvector.hh:281
void resize(size_type size, bool copyOldValues=true)
Resize the vector.
Definition: bvector.hh:420
BlockVector & operator=(const BlockVector &a)
assignment
Definition: bvector.hh:488
BlockVector(const block_vector_unmanaged< B, A > &_a)
construct from base class object
Definition: bvector.hh:453
BlockVector(size_type _n)
make vector with _n components
Definition: bvector.hh:291
void reserve(size_type capacity, bool copyOldValues=true)
Reserve space.
Definition: bvector.hh:358
A allocator_type
export the allocator type
Definition: bvector.hh:266
BlockVector(const BlockVector &a)
copy constructor
Definition: bvector.hh:432
block_vector_unmanaged< B, A >::Iterator Iterator
make iterators available as types
Definition: bvector.hh:278
A::size_type size_type
The type for the index access.
Definition: bvector.hh:269
size_type capacity() const
Get the capacity of the vector.
Definition: bvector.hh:401
B::field_type field_type
export the type representing the field
Definition: bvector.hh:260
BlockVector(size_type _n, S _capacity)
Make vector with _n components but preallocating capacity components.
Definition: bvector.hh:319
B block_type
export the type representing the components
Definition: bvector.hh:263
Definition: bvector.hh:926
compressed_block_vector_unmanaged< B, A >::ConstIterator ConstIterator
make iterators available as types
Definition: bvector.hh:953
const B * getptr() const
get pointer
Definition: bvector.hh:1063
CompressedBlockVectorWindow(const CompressedBlockVectorWindow &a)
copy constructor, this has reference semantics!
Definition: bvector.hh:970
void set(size_type _n, B *_p, size_type *_j)
set size and pointer
Definition: bvector.hh:1025
size_type * getindexptr()
get pointer
Definition: bvector.hh:1057
void setsize(size_type _n)
set size only
Definition: bvector.hh:1033
const size_type * getindexptr() const
get pointer
Definition: bvector.hh:1069
compressed_block_vector_unmanaged< B, A >::Iterator Iterator
make iterators available as types
Definition: bvector.hh:950
CompressedBlockVectorWindow(B *_p, size_type *_j, size_type _n)
make array from given pointers and size
Definition: bvector.hh:962
A::size_type size_type
The type for the index access.
Definition: bvector.hh:941
B::field_type field_type
export the type representing the field
Definition: bvector.hh:932
A allocator_type
export the allocator type
Definition: bvector.hh:938
B block_type
export the type representing the components
Definition: bvector.hh:935
CompressedBlockVectorWindow & operator=(const CompressedBlockVectorWindow &a)
assignment
Definition: bvector.hh:991
void setptr(B *_p)
set pointer only
Definition: bvector.hh:1039
@ blocklevel
The number of block level this vector contains.
Definition: bvector.hh:946
CompressedBlockVectorWindow()
makes empty array
Definition: bvector.hh:958
size_type getsize() const
get size
Definition: bvector.hh:1074
void setindexptr(size_type *_j)
set pointer only
Definition: bvector.hh:1045
CompressedBlockVectorWindow(const compressed_block_vector_unmanaged< B, A > &_a)
construct from base class object with reference semantics!
Definition: bvector.hh:978
A simple array container for objects of type B.
Definition: basearray.hh:41
size_type size() const
number of blocks in the array (are of size 1 here)
Definition: basearray.hh:236
block_vector_unmanaged & operator*=(const field_type &k)
vector space multiplication with scalar
Definition: bvector.hh:101
FieldTraits< field_type >::real_type two_norm() const
two norm sqrt(sum over squared values of entries)
Definition: bvector.hh:184
A::size_type size_type
The size type for the index access.
Definition: bvector.hh:58
block_vector_unmanaged()
make constructor protected, so only derived classes can be instantiated
Definition: bvector.hh:234
FieldTraits< field_type >::real_type two_norm2() const
Square of the two-norm (the sum over the squared values of the entries)
Definition: bvector.hh:192
base_array_unmanaged< B, A >::iterator Iterator
make iterators available as types
Definition: bvector.hh:61
FieldTraits< field_type >::real_type one_norm_real() const
simplified one norm (uses Manhattan norm for complex values)
Definition: bvector.hh:176
block_vector_unmanaged & operator-=(const block_vector_unmanaged &y)
vector space subtraction
Definition: bvector.hh:91
B::field_type field_type
export the type representing the field
Definition: bvector.hh:49
base_array_unmanaged< B, A >::const_iterator ConstIterator
make iterators available as types
Definition: bvector.hh:64
block_vector_unmanaged & axpy(const field_type &a, const block_vector_unmanaged &y)
vector space axpy operation
Definition: bvector.hh:115
block_vector_unmanaged & operator+=(const block_vector_unmanaged &y)
vector space addition
Definition: bvector.hh:81
size_type N() const
number of blocks in the vector (are of size 1 here)
Definition: bvector.hh:218
size_type dim() const
dimension of the vector space
Definition: bvector.hh:224
block_vector_unmanaged & operator/=(const field_type &k)
vector space division by scalar
Definition: bvector.hh:108
PromotionTraits< field_type, typenameOtherB::field_type >::PromotedType dot(const block_vector_unmanaged< OtherB, OtherA > &y) const
vector dot product which corresponds to Petsc's VecDot
Definition: bvector.hh:154
FieldTraits< field_type >::real_type infinity_norm_real() const
simplified infinity norm (uses Manhattan norm for complex values)
Definition: bvector.hh:208
block_vector_unmanaged & operator=(const field_type &k)
Assignment from a scalar.
Definition: bvector.hh:72
PromotionTraits< field_type, typenameOtherB::field_type >::PromotedType operator*(const block_vector_unmanaged< OtherB, OtherA > &y) const
indefinite vector dot product which corresponds to Petsc's VecTDot
Definition: bvector.hh:133
FieldTraits< field_type >::real_type infinity_norm() const
infinity norm (maximum of absolute values of entries)
Definition: bvector.hh:200
B block_type
export the type representing the components
Definition: bvector.hh:52
FieldTraits< field_type >::real_type one_norm() const
one norm (sum over absolute values of entries)
Definition: bvector.hh:168
A allocator_type
export the allocator type
Definition: bvector.hh:55
A simple array container with non-consecutive index set.
Definition: basearray.hh:544
iterator find(size_type i)
random access returning iterator (end if not contained)
Definition: basearray.hh:717
iterator end()
end iterator
Definition: basearray.hh:697
Definition: bvector.hh:723
compressed_block_vector_unmanaged & operator*=(const field_type &k)
vector space multiplication with scalar
Definition: bvector.hh:792
FieldTraits< field_type >::real_type two_norm2() const
Square of the two-norm (the sum over the squared values of the entries)
Definition: bvector.hh:849
compressed_block_vector_unmanaged & operator-=(const V &y)
vector space subtraction
Definition: bvector.hh:771
A::size_type size_type
The type for the index access.
Definition: bvector.hh:744
size_type N() const
number of blocks in the vector (are of size 1 here)
Definition: bvector.hh:876
FieldTraits< field_type >::real_type one_norm_real() const
simplified one norm (uses Manhattan norm for complex values)
Definition: bvector.hh:833
field_type operator*(const compressed_block_vector_unmanaged &y) const
scalar product
Definition: bvector.hh:809
B block_type
export the type representing the components
Definition: bvector.hh:732
bool includesindexset(const V &y)
return true if index sets coincide
Definition: bvector.hh:897
A allocator_type
export the allocator type
Definition: bvector.hh:735
compressed_block_vector_unmanaged & operator/=(const field_type &k)
vector space division by scalar
Definition: bvector.hh:799
FieldTraits< field_type >::real_type one_norm() const
one norm (sum over absolute values of entries)
Definition: bvector.hh:825
B::field_type field_type
export the type representing the field
Definition: bvector.hh:729
size_type dim() const
dimension of the vector space
Definition: bvector.hh:882
compressed_block_vector_unmanaged()
make constructor protected, so only derived classes can be instantiated
Definition: bvector.hh:892
compressed_block_vector_unmanaged & axpy(const field_type &a, const V &y)
vector space axpy operation
Definition: bvector.hh:782
FieldTraits< field_type >::real_type infinity_norm() const
infinity norm (maximum of absolute values of entries)
Definition: bvector.hh:857
compressed_base_array_unmanaged< B, A >::const_iterator ConstIterator
make iterators available as types
Definition: bvector.hh:741
compressed_block_vector_unmanaged & operator+=(const V &y)
vector space addition
Definition: bvector.hh:760
compressed_base_array_unmanaged< B, A >::iterator Iterator
make iterators available as types
Definition: bvector.hh:738
FieldTraits< field_type >::real_type infinity_norm_real() const
simplified infinity norm (uses Manhattan norm for complex values)
Definition: bvector.hh:865
FieldTraits< field_type >::real_type two_norm() const
two norm sqrt(sum over squared values of entries)
Definition: bvector.hh:841
Provides the functions dot(a,b) := and dotT(a,b) := .
Type traits to determine the type of reals (when working with complex numbers)
#define dune_static_assert(COND, MSG)
Helper template so that compilation fails if condition is not true.
Definition: static_assert.hh:79
std::ostream & operator<<(std::ostream &s, const array< T, N > &e)
Output operator for array.
Definition: array.hh:159
Provides some promotion traits.
Fallback implementation of the C++0x static_assert feature.
|
Legal Statements / Impressum |
Hosted by TU Dresden |
generated with Hugo v0.111.3
(Nov 12, 23:30, 2024)