Dune::MatrixAdapter< M, X, Y > Class Template Reference
[Operator concept]

#include <operators.hh>

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

Dune::AssembledLinearOperator< M, X, Y > Dune::LinearOperator< X, Y >

List of all members.


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


Public Types

enum  
 define the category
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: $ 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 *

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

Generated on 6 Nov 2008 with Doxygen (ver 1.5.6) [logfile].