3 #ifndef DUNE_ISTL_OPERATORS_HH
4 #define DUNE_ISTL_OPERATORS_HH
61 template<
class X,
class Y>
75 virtual void apply (
const X& x, Y& y)
const = 0;
93 template<
class M,
class X,
class Y>
103 virtual const M&
getmat ()
const = 0;
120 template<
class M,
class X,
class Y>
137 virtual void apply (
const X& x, Y& y)
const
X domain_type
The type of the domain of the operator.
Definition: operators.hh:65
Y range_type
Definition: operators.hh:127
Definition: operators.hh:131
X domain_type
Definition: operators.hh:126
virtual ~LinearOperator()
every abstract base class has a virtual destructor
Definition: operators.hh:81
A linear operator.
Definition: operators.hh:62
Matrix & A
Definition: matrixmatrix.hh:216
MatrixAdapter(const M &A)
constructor: just store a reference to a matrix
Definition: operators.hh:134
Category for sequential solvers.
Definition: solvercategory.hh:21
virtual void applyscaleadd(field_type alpha, const X &x, Y &y) const =0
apply operator to x, scale and add:
Y range_type
Definition: operators.hh:99
M matrix_type
export types
Definition: operators.hh:125
X domain_type
Definition: operators.hh:98
virtual void apply(const X &x, Y &y) const =0
apply operator to x: The input vector is consistent and the output must also be consistent on the in...
virtual ~AssembledLinearOperator()
every abstract base class has a virtual destructor
Definition: operators.hh:106
virtual void applyscaleadd(field_type alpha, const X &x, Y &y) const
apply operator to x, scale and add:
Definition: operators.hh:143
virtual const M & getmat() const
get matrix via *
Definition: operators.hh:149
virtual void apply(const X &x, Y &y) const
apply operator to x:
Definition: operators.hh:137
X::field_type field_type
Definition: operators.hh:128
X::field_type field_type
Definition: operators.hh:100
virtual const M & getmat() const =0
get matrix via *
Adapter to turn a matrix into a linear operator.
Definition: operators.hh:121
A linear operator exporting itself in matrix form.
Definition: operators.hh:94
X::field_type field_type
The field type of the operator.
Definition: operators.hh:69
M matrix_type
export types, usually they come from the derived class
Definition: operators.hh:97
Y range_type
The type of the range of the operator.
Definition: operators.hh:67