dune-istl 3.0-git
|
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 |
typedef Y | range_type |
typedef X::field_type | field_type |
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::field_type Dune::MatrixAdapter< M, X, Y >::field_type |
export types
|
inlineexplicit |
constructor: just store a reference to a matrix
apply operator to x:
Implements Dune::LinearOperator< X, Y >.
|
inlinevirtual |
apply operator to x, scale and add:
Implements Dune::LinearOperator< X, Y >.
|
inlinevirtual |
get matrix via *
Implements Dune::AssembledLinearOperator< M, X, Y >.