|
dune-istl 2.12-git
|
Loading...
Searching...
No Matches
vectorview.hh
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright © DUNE Project contributors, see file LICENSE.md in module root
364 noexcept(f(std::declval<reference>(), std::declval<typename VectorView<OtherB, OtherR>::const_reference>()))
Indexed view over random-access data using an explicit index set.
STL namespace.
std::ptrdiff_t index() const
#define DUNE_THROW(E,...)
T field_type
T real_type
Non-owning indexed view over random-access data.
Definition indexedarrayview.hh:36
ConstIterator const_iterator
Iterator type with const access to the underlying data.
Definition indexedarrayview.hh:204
Iterator iterator
Iterator type with mutable access to the underlying data.
Definition indexedarrayview.hh:202
constexpr index_range_type indexSet() const
The logical index range covered by the view, as determined by the index set.
Definition indexedarrayview.hh:268
R index_range_type
The type used for the index set.
Definition indexedarrayview.hh:39
typename OrderedIndexRangeTraits< index_range_type >::size_type size_type
The type used to count elements in the index set.
Definition indexedarrayview.hh:45
Non-owning block vector view with explicit indices.
Definition vectorview.hh:59
typename IndexedArrayView< B, R >::member_type block_type
The type of blocks in the vector.
Definition vectorview.hh:65
VectorView & operator*=(const field_type &k) noexcept(noexcept(std::declval< reference >() *=std::declval< const field_type & >()))
Scale all entries by k.
Definition vectorview.hh:118
typename IndexedArrayView< B, R >::const_iterator ConstIterator
Iterator type with const access to the underlying blocks.
Definition vectorview.hh:78
VectorView & axpy(const field_type &a, const VectorView< OtherB, OtherR > &y) noexcept(noexcept(this->checkSizeMatch(std::declval< const VectorView< OtherB, OtherR > & >())) &&noexcept(Dune::Impl::asVector(std::declval< reference >()) .axpy(std::declval< const field_type & >(), Dune::Impl::asVector(std::declval< typename VectorView< OtherB, OtherR >::const_reference >()))))
Definition vectorview.hh:139
FieldTraits< field_type >::real_type one_norm_real() const noexcept(noexcept(Dune::Impl::asVector(std::declval< const_reference >()).one_norm_real()))
Simplified one norm (uses Manhattan norm for complex values)
Definition vectorview.hh:229
FieldTraits< field_type >::real_type two_norm() const noexcept(noexcept(two_norm2()))
Two norm sqrt(sum over squared values of entries)
Definition vectorview.hh:240
FieldTraits< field_type >::real_type two_norm2() const noexcept(noexcept(Dune::Impl::asVector(std::declval< const_reference >()).two_norm2()))
Square of the two-norm (the sum over the squared values of the entries)
Definition vectorview.hh:249
typename IndexedArrayView< B, R >::index_range_type index_range_type
The type used for the index set.
Definition vectorview.hh:63
typename IndexedArrayView< B, R >::size_type size_type
The type used to count elements in the index set.
Definition vectorview.hh:67
typename IndexedArrayView< B, R >::member_type value_type
The type of blocks in the vector.
Definition vectorview.hh:69
auto operator*(const VectorView< OtherB, OtherR > &y) const noexcept(noexcept(this->checkSizeMatch(std::declval< const VectorView< OtherB, OtherR > & >())) &&noexcept(Dune::Impl::asVector(std::declval< const_reference >()) *Dune::Impl::asVector(std::declval< typename VectorView< OtherB, OtherR >::const_reference >())))
Indefinite vector dot product .
Definition vectorview.hh:154
typename IndexedArrayView< B, R >::const_reference const_reference
The type used for const references to the blocks.
Definition vectorview.hh:73
typename IndexedArrayView< B, R >::iterator Iterator
Iterator type with mutable access to the underlying blocks.
Definition vectorview.hh:76
VectorView & operator-=(const VectorView< OtherB, OtherR > &y) noexcept(noexcept(this->checkSizeMatch(std::declval< const VectorView< OtherB, OtherR > & >())) &&noexcept(std::declval< reference >() -=std::declval< typename VectorView< OtherB, OtherR >::const_reference >()))
Definition vectorview.hh:108
VectorView & operator+=(const VectorView< OtherB, OtherR > &y) noexcept(noexcept(this->checkSizeMatch(std::declval< const VectorView< OtherB, OtherR > & >())) &&noexcept(std::declval< reference >()+=std::declval< typename VectorView< OtherB, OtherR >::const_reference >()))
Definition vectorview.hh:96
VectorView & operator/=(const field_type &k) noexcept(noexcept(std::declval< reference >()/=std::declval< const field_type & >()))
Divide all entries by k.
Definition vectorview.hh:127
typename FieldTraits< block_type >::real_type real_type
The type of the real part of the field.
Definition vectorview.hh:82
VectorView & operator=(const field_type &k) noexcept(noexcept(std::declval< reference >()=std::declval< const field_type & >()))
Assign all entries to scalar k.
Definition vectorview.hh:85
auto dot(const VectorView< OtherB, OtherR > &y) const noexcept(noexcept(this->checkSizeMatch(std::declval< const VectorView< OtherB, OtherR > & >())) &&noexcept(Dune::Impl::asVector(std::declval< const_reference >()) .dot(Dune::Impl::asVector(std::declval< typename VectorView< OtherB, OtherR >::const_reference >()))))
Vector dot product .
Definition vectorview.hh:187
size_type N() const noexcept
Logical index span of the vector (size of index_set range), not stored entries.
Definition vectorview.hh:323
typename FieldTraits< block_type >::field_type field_type
The type of the field.
Definition vectorview.hh:80
FieldTraits< field_type >::real_type infinity_norm() const noexcept(noexcept(Dune::Impl::asVector(std::declval< const_reference >()).infinity_norm()))
Infinity norm (maximum of absolute values of entries)
Definition vectorview.hh:260
FieldTraits< field_type >::real_type infinity_norm_real() const noexcept(noexcept(Dune::Impl::asVector(std::declval< const_reference >()).infinity_norm_real()))
Simplified infinity norm (uses Manhattan norm for complex values)
Definition vectorview.hh:291
FieldTraits< field_type >::real_type one_norm() const noexcept(noexcept(Dune::Impl::asVector(std::declval< const_reference >()).one_norm()))
One norm (sum over absolute values of entries)
Definition vectorview.hh:218
typename IndexedArrayView< B, R >::reference reference
The type used for references to the blocks.
Definition vectorview.hh:71
T cbegin(T... args)
T declval(T... args)
T cend(T... args)
T fegetenv(T... args)
T max(T... args)
T sqrt(T... args)
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8