dune-istl 3.0-git
Public Types | Public Member Functions | List of all members
Dune::MatrixAdapter< M, X, Y > Class Template Reference

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

#include <dune/istl/operators.hh>

Inheritance diagram for Dune::MatrixAdapter< M, X, Y >:
Inheritance graph

Public Types

enum  { category =SolverCategory::sequential }
 define the category More...
 
typedefmatrix_type
 export types
 
typedefdomain_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: $ y = A(x) $
 
virtual void applyscaleadd (field_type alpha, const X &x, Y &y) const
 apply operator to x, scale and add: $ y = y + \alpha A(x) $
 
virtual const M & getmat () const
 get matrix via *
 

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

Member Typedef Documentation

◆ domain_type

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

◆ field_type

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

◆ matrix_type

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

export types

◆ range_type

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

Member Enumeration Documentation

◆ anonymous enum

template<class M , class X , class Y >
anonymous enum

define the category

Enumerator
category 

Constructor & Destructor Documentation

◆ MatrixAdapter()

template<class M , class X , class Y >
Dune::MatrixAdapter< M, X, Y >::MatrixAdapter ( const M &  A)
inlineexplicit

constructor: just store a reference to a matrix

Member Function Documentation

◆ apply()

template<class M , class X , class Y >
virtual void Dune::MatrixAdapter< M, X, Y >::apply ( const X &  x,
Y y 
) const
inlinevirtual

apply operator to x: $ y = A(x) $

Implements Dune::LinearOperator< X, Y >.

◆ applyscaleadd()

template<class M , class X , class Y >
virtual void Dune::MatrixAdapter< M, X, Y >::applyscaleadd ( field_type  alpha,
const X &  x,
Y y 
) const
inlinevirtual

apply operator to x, scale and add: $ y = y + \alpha A(x) $

Implements Dune::LinearOperator< X, Y >.

◆ getmat()

template<class M , class X , class Y >
virtual const M & Dune::MatrixAdapter< M, X, Y >::getmat ( ) const
inlinevirtual

get matrix via *

Implements Dune::AssembledLinearOperator< M, X, Y >.


The documentation for this class was generated from the following file: