dune-istl
2.9.0
|
Adapter to turn a matrix into a linear operator. More...
#include <dune/istl/operators.hh>
Public Types | |
typedef M | matrix_type |
export types More... | |
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 More... | |
MatrixAdapter (std::shared_ptr< const M > A) | |
constructor: store an std::shared_ptr to a matrix More... | |
void | apply (const X &x, Y &y) const override |
apply operator to x: ![]() | |
void | applyscaleadd (field_type alpha, const X &x, Y &y) const override |
apply operator to x, scale and add: ![]() | |
const M & | getmat () const override |
get matrix via * More... | |
SolverCategory::Category | category () const override |
Category of the solver (see SolverCategory::Category) More... | |
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 |
typedef X::field_type Dune::MatrixAdapter< M, X, Y >::field_type |
typedef M Dune::MatrixAdapter< M, X, Y >::matrix_type |
export types
typedef Y Dune::MatrixAdapter< M, X, Y >::range_type |
|
inlineexplicit |
constructor: just store a reference to a matrix
|
inlineexplicit |
constructor: store an std::shared_ptr to a matrix
|
inlineoverridevirtual |
apply operator to x:
Implements Dune::LinearOperator< X, Y >.
|
inlineoverridevirtual |
apply operator to x, scale and add:
Implements Dune::LinearOperator< X, Y >.
|
inlineoverridevirtual |
Category of the solver (see SolverCategory::Category)
Implements Dune::LinearOperator< X, Y >.
|
inlineoverridevirtual |
get matrix via *
Implements Dune::AssembledLinearOperator< M, X, Y >.