Dune Core Modules (2.5.0)
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 & operator=(const BlockVectorWindow &a)
assignment
Definition: bvector.hh:700
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
@ 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 & operator=(const BlockVector &a)
assignment
Definition: bvector.hh:543
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
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
const B * getptr() const
get pointer
Definition: bvector.hh:1142
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
size_type * getindexptr()
get pointer
Definition: bvector.hh:1136
void setsize(size_type _n)
set size only
Definition: bvector.hh:1112
const size_type * getindexptr() const
get pointer
Definition: bvector.hh:1148
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
CompressedBlockVectorWindow & operator=(const CompressedBlockVectorWindow &a)
assignment
Definition: bvector.hh:1077
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
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
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 & operator*=(const field_type &k)
vector space multiplication with scalar
Definition: bvector.hh:110
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()
make constructor protected, so only derived classes can be instantiated
Definition: bvector.hh:293
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
base_array_unmanaged< B, A >::iterator Iterator
make iterators available as types
Definition: bvector.hh:64
FieldTraits< ft >::real_type infinity_norm() const
infinity norm (maximum of absolute values of entries)
Definition: bvector.hh:211
FieldTraits< field_type >::real_type one_norm_real() const
simplified one norm (uses Manhattan norm for complex values)
Definition: bvector.hh:185
block_vector_unmanaged & operator-=(const block_vector_unmanaged &y)
vector space subtraction
Definition: bvector.hh:100
B::field_type field_type
export the type representing the field
Definition: bvector.hh:52
FieldTraits< ft >::real_type infinity_norm_real() const
simplified infinity norm (uses Manhattan norm for complex values)
Definition: bvector.hh:226
base_array_unmanaged< B, A >::const_iterator ConstIterator
make iterators available as types
Definition: bvector.hh:67
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 addition
Definition: bvector.hh:90
size_type N() const
number of blocks in the vector (are of size 1 here)
Definition: bvector.hh:277
size_type dim() const
dimension of the vector space
Definition: bvector.hh:283
block_vector_unmanaged & operator/=(const field_type &k)
vector space division by scalar
Definition: bvector.hh:117
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:163
const B & const_reference
Type used for const references.
Definition: bvector.hh:76
B & reference
Type used for references.
Definition: bvector.hh:73
block_vector_unmanaged & operator=(const field_type &k)
Assignment from a scalar.
Definition: bvector.hh:81
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:142
B block_type
export the type representing the components
Definition: bvector.hh:55
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
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 field_type &k)
vector space multiplication with scalar
Definition: bvector.hh:840
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
compressed_block_vector_unmanaged & operator-=(const V &y)
vector space subtraction
Definition: bvector.hh:819
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< field_type >::real_type one_norm_real() const
simplified one norm (uses Manhattan norm for complex values)
Definition: bvector.hh:881
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
FieldTraits< ft >::real_type infinity_norm() const
infinity norm (maximum of absolute values of entries)
Definition: bvector.hh:907
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 one_norm() const
one norm (sum over absolute values of entries)
Definition: bvector.hh:873
FieldTraits< ft >::real_type infinity_norm_real() const
simplified infinity norm (uses Manhattan norm for complex values)
Definition: bvector.hh:922
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
compressed_block_vector_unmanaged & axpy(const field_type &a, const V &y)
vector space axpy operation
Definition: bvector.hh:830
compressed_base_array_unmanaged< B, A >::const_iterator ConstIterator
make iterators available as types
Definition: bvector.hh:789
compressed_block_vector_unmanaged & operator+=(const V &y)
vector space addition
Definition: bvector.hh:808
compressed_base_array_unmanaged< B, A >::iterator Iterator
make iterators available as types
Definition: bvector.hh:786
FieldTraits< field_type >::real_type two_norm() const
two norm sqrt(sum over squared values of entries)
Definition: bvector.hh:889
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.
|
Legal Statements / Impressum |
Hosted by TU Dresden |
generated with Hugo v0.111.3
(Nov 23, 23:29, 2024)