3#ifndef DUNE_ISTL_SCALARPRODUCTS_HH
4#define DUNE_ISTL_SCALARPRODUCTS_HH
75 template<
class X,
class C,
int c>
124 template<
class X,
class C>
This file implements a vector space as a tensor product of a given vector space. The number of compon...
Definition basearray.hh:19
Statistics about compression achieved in implicit mode.
Definition bcrsmatrix.hh:81
Base class for scalar product and norm computation.
Definition scalarproducts.hh:44
virtual field_type dot(const X &x, const X &y)=0
Dot product of two vectors. It is assumed that the vectors are consistent on the interior+border part...
X::field_type field_type
Definition scalarproducts.hh:48
X domain_type
export types, they come from the derived class
Definition scalarproducts.hh:47
virtual ~ScalarProduct()
every abstract base class has a virtual destructor
Definition scalarproducts.hh:63
FieldTraits< field_type >::real_type real_type
Definition scalarproducts.hh:49
virtual real_type norm(const X &x)=0
Norm of a right-hand side vector. The vector must be consistent on the interior+border partition.
Choose the approriate scalar product for a solver category.
Definition scalarproducts.hh:77
C communication_type
The type of the communication object.
Definition scalarproducts.hh:79
@ solverCategory
The solver category.
Definition scalarproducts.hh:83
Default implementation for the scalar case.
Definition scalarproducts.hh:96
X::field_type field_type
Definition scalarproducts.hh:100
X domain_type
export types
Definition scalarproducts.hh:99
@ category
Definition scalarproducts.hh:104
virtual real_type norm(const X &x)
Norm of a right-hand side vector. The vector must be consistent on the interior+border partition.
Definition scalarproducts.hh:118
virtual field_type dot(const X &x, const X &y)
Dot product of two vectors. In the complex case, the first argument is conjugated....
Definition scalarproducts.hh:110
FieldTraits< field_type >::real_type real_type
Definition scalarproducts.hh:101
static ScalarProduct * construct(const C &)
Definition scalarproducts.hh:135
SeqScalarProduct< X > ScalarProduct
The type of the scalar product for the sequential case.
Definition scalarproducts.hh:128
Categories for the solvers.
Definition solvercategory.hh:18
@ sequential
Category for sequential solvers.
Definition solvercategory.hh:21