Classes | Public Member Functions
SolverRelaxation< VECTOR > Class Template Reference
Inheritance diagram for SolverRelaxation< VECTOR >:
Inheritance graph
[legend]

List of all members.

Classes

struct  AdditionalData

Public Member Functions

 SolverRelaxation (SolverControl &cn, const AdditionalData &data=AdditionalData())
virtual ~SolverRelaxation ()
template<class MATRIX , class RELAXATION >
void solve (const MATRIX &A, VECTOR &x, const VECTOR &b, const RELAXATION &R)

Detailed Description

template<class VECTOR = Vector<double>>
class SolverRelaxation< VECTOR >

Implementation of an iterative solver based on relaxation methods. The stopping criterion is the norm of the residual.

For the requirements on matrices and vectors in order to work with this class, see the documentation of the Solver base class.

Like all other solver classes, this class has a local structure called AdditionalData which is used to pass additional parameters to the solver, like damping parameters or the number of temporary vectors. We use this additional structure instead of passing these values directly to the constructor because this makes the use of the SolverSelector and other classes much easier and guarantees that these will continue to work even if number or type of the additional parameters for a certain solver changes. AdditionalData of this class currently does not contain any data.

Author:
Guido Kanschat
Date:
2010

Constructor & Destructor Documentation

template<class VECTOR >
SolverRelaxation< VECTOR >::SolverRelaxation ( SolverControl &  cn,
const AdditionalData &  data = AdditionalData() 
)

Constructor.

template<class VECTOR >
SolverRelaxation< VECTOR >::~SolverRelaxation ( ) [virtual]

Virtual destructor.


Member Function Documentation

template<class VECTOR >
template<class MATRIX , class RELAXATION >
void SolverRelaxation< VECTOR >::solve ( const MATRIX &  A,
VECTOR &  x,
const VECTOR &  b,
const RELAXATION &  R 
)

Solve the system $Ax = b$ using the relaxation method $x_{k+1} = R(x_k,b)$. The amtrix A itself is only used to compute the residual.

References deallog, SolverControl::iterate, LogStream::pop(), LogStream::push(), SolverControl::success, and MATRIX< VECTOR >::vmult().


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

deal.II documentation generated on Fri Aug 12 2011 15:01:06 by doxygen 1.7.4