DUNE PDELab (git)

Adapter to turn a matrix into a linear operator. More...

#include <dune/istl/operators.hh>

Public Types

typedef M matrix_type
 export types
 

Public Member Functions

 MatrixAdapter (const M &A)
 constructor: just store a reference to a matrix
 
 MatrixAdapter (std::shared_ptr< const M > A)
 constructor: store an std::shared_ptr to a matrix
 
void apply (const X &x, Y &y) const override
 apply operator to x: \( y = A(x) \)
 
void applyscaleadd (field_type alpha, const X &x, Y &y) const override
 apply operator to x, scale and add: \( y = y + \alpha A(x) \)
 
const M & getmat () const override
 get reference to matrix
 
SolverCategory::Category category () const override
 Category of the solver (see SolverCategory::Category)
 

Detailed Description

template<class M, class X, class Y>
class Dune::MatrixAdapter< M, X, Y >

Adapter to turn a matrix into a linear operator.

Adapts a matrix to the assembled linear operator interface

Examples
recipe-linear-system-solution-istl.cc.

The documentation for this class was generated from the following file:
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Nov 23, 23:29, 2024)