Dune Core Modules (2.5.1)
bvector.hh
Go to the documentation of this file.
142 typename PromotionTraits<field_type,typename OtherB::field_type>::PromotedType operator* (const block_vector_unmanaged<OtherB,OtherA>& y) const
144 typedef typename PromotionTraits<field_type,typename OtherB::field_type>::PromotedType PromotedType;
163 typename PromotionTraits<field_type,typename OtherB::field_type>::PromotedType dot(const block_vector_unmanaged<OtherB,OtherA>& y) const
165 typedef typename PromotionTraits<field_type,typename OtherB::field_type>::PromotedType PromotedType;
334 };
401 "capacity must be an unsigned integral type (be aware, that this constructor does not set the default value!)" );
671 };
1046 };
Implements several basic array containers.
Definition: bvector.hh:650
A allocator_type
export the allocator type
Definition: bvector.hh:662
BlockVectorWindow(const BlockVectorWindow &a)
copy constructor, this has reference semantics!
Definition: bvector.hh:693
void set(size_type _n, B *_p)
set size and pointer
Definition: bvector.hh:726
block_vector_unmanaged< B, A >::Iterator Iterator
make iterators available as types
Definition: bvector.hh:674
B::field_type field_type
export the type representing the field
Definition: bvector.hh:656
@ blocklevel
The number of blocklevels we contain.
Definition: bvector.hh:670
BlockVectorWindow(B *_p, size_type _n)
make array from given pointer and size
Definition: bvector.hh:686
B block_type
export the type representing the components
Definition: bvector.hh:659
BlockVectorWindow()
makes empty array
Definition: bvector.hh:682
A::size_type size_type
The type for the index access.
Definition: bvector.hh:665
block_vector_unmanaged< B, A >::ConstIterator ConstIterator
make iterators available as types
Definition: bvector.hh:677
BlockVectorWindow & operator=(const BlockVectorWindow &a)
assignment
Definition: bvector.hh:700
@ blocklevel
The number of blocklevel we contain.
Definition: bvector.hh:333
block_vector_unmanaged< B, A >::ConstIterator ConstIterator
make iterators available as types
Definition: bvector.hh:340
void resize(size_type size, bool copyOldValues=true)
Resize the vector.
Definition: bvector.hh:499
BlockVector(size_type _n)
make vector with _n components
Definition: bvector.hh:350
void reserve(size_type capacity, bool copyOldValues=true)
Reserve space.
Definition: bvector.hh:437
BlockVector & operator=(const BlockVector &a)
assignment
Definition: bvector.hh:543
A allocator_type
export the allocator type
Definition: bvector.hh:325
BlockVector(const BlockVector &a)
copy constructor
Definition: bvector.hh:511
block_vector_unmanaged< B, A >::Iterator Iterator
make iterators available as types
Definition: bvector.hh:337
A::size_type size_type
The type for the index access.
Definition: bvector.hh:328
BlockVector(std::initializer_list< B > const &l)
Construct from a std::initializer_list.
Definition: bvector.hh:367
size_type capacity() const
Get the capacity of the vector.
Definition: bvector.hh:480
B::field_type field_type
export the type representing the field
Definition: bvector.hh:319
BlockVector(size_type _n, S _capacity)
Make vector with _n components but preallocating capacity components.
Definition: bvector.hh:398
B block_type
export the type representing the components
Definition: bvector.hh:322
Definition: bvector.hh:1025
compressed_block_vector_unmanaged< B, A >::ConstIterator ConstIterator
make iterators available as types
Definition: bvector.hh:1052
CompressedBlockVectorWindow & operator=(const CompressedBlockVectorWindow &a)
assignment
Definition: bvector.hh:1077
CompressedBlockVectorWindow(const CompressedBlockVectorWindow &a)
copy constructor, this has reference semantics!
Definition: bvector.hh:1069
void set(size_type _n, B *_p, size_type *_j)
set size and pointer
Definition: bvector.hh:1104
void setsize(size_type _n)
set size only
Definition: bvector.hh:1112
compressed_block_vector_unmanaged< B, A >::Iterator Iterator
make iterators available as types
Definition: bvector.hh:1049
CompressedBlockVectorWindow(B *_p, size_type *_j, size_type _n)
make array from given pointers and size
Definition: bvector.hh:1061
A::size_type size_type
The type for the index access.
Definition: bvector.hh:1040
B::field_type field_type
export the type representing the field
Definition: bvector.hh:1031
A allocator_type
export the allocator type
Definition: bvector.hh:1037
B block_type
export the type representing the components
Definition: bvector.hh:1034
void setptr(B *_p)
set pointer only
Definition: bvector.hh:1118
CompressedBlockVectorWindow()
makes empty array
Definition: bvector.hh:1057
size_type getsize() const
get size
Definition: bvector.hh:1153
const B * getptr() const
get pointer
Definition: bvector.hh:1142
const size_type * getindexptr() const
get pointer
Definition: bvector.hh:1148
void setindexptr(size_type *_j)
set pointer only
Definition: bvector.hh:1124
@ blocklevel
The number of block level this vector contains.
Definition: bvector.hh:1045
size_type * getindexptr()
get pointer
Definition: bvector.hh:1136
A simple array container for objects of type B.
Definition: basearray.hh:47
size_type size() const
number of blocks in the array (are of size 1 here)
Definition: basearray.hh:242
block_vector_unmanaged & axpy(const field_type &a, const block_vector_unmanaged &y)
vector space axpy operation
Definition: bvector.hh:124
block_vector_unmanaged & operator-=(const block_vector_unmanaged &y)
vector space subtraction
Definition: bvector.hh:100
PromotionTraits< field_type, typename OtherB::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:142
FieldTraits< field_type >::real_type one_norm_real() const
simplified one norm (uses Manhattan norm for complex values)
Definition: bvector.hh:185
FieldTraits< field_type >::real_type two_norm() const
two norm sqrt(sum over squared values of entries)
Definition: bvector.hh:193
A::size_type size_type
The size type for the index access.
Definition: bvector.hh:61
block_vector_unmanaged & operator=(const field_type &k)
Assignment from a scalar.
Definition: bvector.hh:81
block_vector_unmanaged()
make constructor protected, so only derived classes can be instantiated
Definition: bvector.hh:293
base_array_unmanaged< B, A >::iterator Iterator
make iterators available as types
Definition: bvector.hh:64
block_vector_unmanaged & operator+=(const block_vector_unmanaged &y)
vector space addition
Definition: bvector.hh:90
B::field_type field_type
export the type representing the field
Definition: bvector.hh:52
base_array_unmanaged< B, A >::const_iterator ConstIterator
make iterators available as types
Definition: bvector.hh:67
block_vector_unmanaged & operator*=(const field_type &k)
vector space multiplication with scalar
Definition: bvector.hh:110
size_type N() const
number of blocks in the vector (are of size 1 here)
Definition: bvector.hh:277
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:201
size_type dim() const
dimension of the vector space
Definition: bvector.hh:283
const B & const_reference
Type used for const references.
Definition: bvector.hh:76
B & reference
Type used for references.
Definition: bvector.hh:73
PromotionTraits< field_type, typename OtherB::field_type >::PromotedType dot(const block_vector_unmanaged< OtherB, OtherA > &y) const
vector dot product which corresponds to Petsc's VecDot
Definition: bvector.hh:163
FieldTraits< ft >::real_type infinity_norm() const
infinity norm (maximum of absolute values of entries)
Definition: bvector.hh:211
FieldTraits< ft >::real_type infinity_norm_real() const
simplified infinity norm (uses Manhattan norm for complex values)
Definition: bvector.hh:226
B block_type
export the type representing the components
Definition: bvector.hh:55
block_vector_unmanaged & operator/=(const field_type &k)
vector space division by scalar
Definition: bvector.hh:117
FieldTraits< field_type >::real_type one_norm() const
one norm (sum over absolute values of entries)
Definition: bvector.hh:177
A allocator_type
export the allocator type
Definition: bvector.hh:58
iterator class for sequential access
Definition: basearray.hh:565
A simple array container with non-consecutive index set.
Definition: basearray.hh:527
iterator find(size_type i)
random access returning iterator (end if not contained)
Definition: basearray.hh:686
iterator end()
end iterator
Definition: basearray.hh:666
Definition: bvector.hh:771
compressed_block_vector_unmanaged & operator+=(const V &y)
vector space addition
Definition: bvector.hh:808
FieldTraits< field_type >::real_type one_norm_real() const
simplified one norm (uses Manhattan norm for complex values)
Definition: bvector.hh:881
compressed_block_vector_unmanaged & operator-=(const V &y)
vector space subtraction
Definition: bvector.hh:819
FieldTraits< ft >::real_type infinity_norm() const
infinity norm (maximum of absolute values of entries)
Definition: bvector.hh:907
A::size_type size_type
The type for the index access.
Definition: bvector.hh:792
size_type N() const
number of blocks in the vector (are of size 1 here)
Definition: bvector.hh:973
FieldTraits< ft >::real_type infinity_norm_real() const
simplified infinity norm (uses Manhattan norm for complex values)
Definition: bvector.hh:922
field_type operator*(const compressed_block_vector_unmanaged &y) const
scalar product
Definition: bvector.hh:857
B block_type
export the type representing the components
Definition: bvector.hh:780
bool includesindexset(const V &y)
return true if index sets coincide
Definition: bvector.hh:994
A allocator_type
export the allocator type
Definition: bvector.hh:783
compressed_block_vector_unmanaged & operator/=(const field_type &k)
vector space division by scalar
Definition: bvector.hh:847
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:897
B::field_type field_type
export the type representing the field
Definition: bvector.hh:777
size_type dim() const
dimension of the vector space
Definition: bvector.hh:979
compressed_block_vector_unmanaged()
make constructor protected, so only derived classes can be instantiated
Definition: bvector.hh:989
FieldTraits< field_type >::real_type one_norm() const
one norm (sum over absolute values of entries)
Definition: bvector.hh:873
FieldTraits< field_type >::real_type two_norm() const
two norm sqrt(sum over squared values of entries)
Definition: bvector.hh:889
compressed_block_vector_unmanaged & axpy(const field_type &a, const V &y)
vector space axpy operation
Definition: bvector.hh:830
compressed_block_vector_unmanaged & operator*=(const field_type &k)
vector space multiplication with scalar
Definition: bvector.hh:840
compressed_base_array_unmanaged< B, A >::const_iterator ConstIterator
make iterators available as types
Definition: bvector.hh:789
compressed_base_array_unmanaged< B, A >::iterator Iterator
make iterators available as types
Definition: bvector.hh:786
Provides the functions dot(a,b) := and dotT(a,b) := .
Type traits to determine the type of reals (when working with complex numbers)
Compute type of the result of an arithmetic operation involving two different number types.
Compute type of the result of an arithmetic operation involving two different number types.
Definition: promotiontraits.hh:25
|
Legal Statements / Impressum |
Hosted by TU Dresden |
generated with Hugo v0.80.0
(May 9, 22:29, 2024)