dune-istl
2.2.0
|
Adapter to turn a matrix into a linear operator. More...
#include <dune/istl/operators.hh>
Public Types | |
enum | { category = SolverCategory::sequential } |
define the category More... | |
typedef M | matrix_type |
export types | |
typedef X | domain_type |
The type of the domain of the operator. | |
typedef Y | range_type |
The type of the range of the operator. | |
typedef X::field_type | field_type |
The field type of the operator. | |
Public Member Functions | |
MatrixAdapter (const M &A) | |
constructor: just store a reference to a matrix | |
virtual void | apply (const X &x, Y &y) const |
apply operator to x: ![]() | |
virtual void | applyscaleadd (field_type alpha, const X &x, Y &y) const |
apply operator to x, scale and add: ![]() | |
virtual const M & | getmat () const |
get matrix via * |
Adapter to turn a matrix into a linear operator.
Adapts a matrix to the assembled linear operator interface
typedef X Dune::MatrixAdapter< M, X, Y >::domain_type |
The type of the domain of the operator.
Reimplemented from Dune::AssembledLinearOperator< M, X, Y >.
typedef X::field_type Dune::MatrixAdapter< M, X, Y >::field_type |
The field type of the operator.
Reimplemented from Dune::AssembledLinearOperator< M, X, Y >.
typedef M Dune::MatrixAdapter< M, X, Y >::matrix_type |
export types
Reimplemented from Dune::AssembledLinearOperator< M, X, Y >.
typedef Y Dune::MatrixAdapter< M, X, Y >::range_type |
The type of the range of the operator.
Reimplemented from Dune::AssembledLinearOperator< M, X, Y >.
Dune::MatrixAdapter< M, X, Y >::MatrixAdapter | ( | const M & | A | ) | [inline] |
constructor: just store a reference to a matrix
virtual void Dune::MatrixAdapter< M, X, Y >::apply | ( | const X & | x, |
Y & | y | ||
) | const [inline, virtual] |
apply operator to x:
Implements Dune::LinearOperator< X, Y >.
virtual void Dune::MatrixAdapter< M, X, Y >::applyscaleadd | ( | field_type | alpha, |
const X & | x, | ||
Y & | y | ||
) | const [inline, virtual] |
apply operator to x, scale and add:
Implements Dune::LinearOperator< X, Y >.
virtual const M& Dune::MatrixAdapter< M, X, Y >::getmat | ( | ) | const [inline, virtual] |
get matrix via *
Implements Dune::AssembledLinearOperator< M, X, Y >.