|
dune-istl 2.8.0
|
Loading...
Searching...
No Matches
multitypeblockvector.hh
Go to the documentation of this file.
154 operator[] ([[maybe_unused]] const std::integral_constant< size_type, index > indexVariable) const
224 return accumulate(*this, typename FieldTraits<field_type>::real_type(0), [&](auto&& a, auto&& entry) {
233 return accumulate(*this, typename FieldTraits<field_type>::real_type(0), [&](auto&& a, auto&& entry) {
242 return accumulate(*this, typename FieldTraits<field_type>::real_type(0), [&](auto&& a, auto&& entry) {
Simple iterative methods like Jacobi, Gauss-Seidel, SOR, SSOR, etc. in a generic way.
FieldTraits< Arg0 >::field_type field_type
Definition multitypeblockvector.hh:41
FieldTraits< Arg0 >::real_type real_type
Definition multitypeblockvector.hh:42
void operator=(const T &newval)
Assignment operator.
Definition multitypeblockvector.hh:162
static constexpr size_type N()
Number of elements.
Definition multitypeblockvector.hh:95
static constexpr size_type size()
Return the number of non-zero vector entries.
Definition multitypeblockvector.hh:88
std::tuple_element< index, TupleType >::type & operator[](const std::integral_constant< size_type, index > indexVariable)
Random-access operator.
Definition multitypeblockvector.hh:142
FieldTraits< field_type >::real_type two_norm() const
Compute the Euclidean norm.
Definition multitypeblockvector.hh:249
size_type dim() const
Number of scalar elements.
Definition multitypeblockvector.hh:113
field_type dot(const type &newv) const
Definition multitypeblockvector.hh:213
void operator*=(const T &w)
Multiplication with a scalar.
Definition multitypeblockvector.hh:191
void axpy(const Ta &a, const type &y)
Axpy operation on this vector (*this += a * y)
Definition multitypeblockvector.hh:318
void operator/=(const T &w)
Division by a scalar.
Definition multitypeblockvector.hh:200
MultiTypeBlockVector< Args... > type
Definition multitypeblockvector.hh:72
FieldTraits< field_type >::real_type infinity_norm_real() const
Compute the simplified maximum norm (uses 1-norm for complex values)
Definition multitypeblockvector.hh:284
auto one_norm() const
Compute the 1-norm.
Definition multitypeblockvector.hh:222
void operator-=(const type &newv)
Definition multitypeblockvector.hh:181
field_type operator*(const type &newv) const
Definition multitypeblockvector.hh:206
void operator+=(const type &newv)
Definition multitypeblockvector.hh:171
FieldTraits< field_type >::real_type infinity_norm() const
Compute the maximum norm.
Definition multitypeblockvector.hh:253
auto one_norm_real() const
Compute the simplified 1-norm (uses 1-norm also for complex values)
Definition multitypeblockvector.hh:231
double field_type
The type used for scalars.
Definition multitypeblockvector.hh:81
FieldTraits< field_type >::real_type two_norm2() const
Compute the squared Euclidean norm.
Definition multitypeblockvector.hh:240
constexpr auto size(const T &t)
constexpr void forEach(Range &&range, F &&f)
std::ostream & operator<<(std::ostream &s, const bigunsignedint< k > &x)
T field_type
T real_type
A Vector class to support different block types.
Definition multitypeblockvector.hh:56
T max(T... args)
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8