SORPrecond< T > Class Template Reference

The Gauss-Seidel preconditioner class template. More...

#include <SOR.hpp>

Inheritance diagram for SORPrecond< T >:

Inheritance graph
[legend]
Collaboration diagram for SORPrecond< T >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

void PrintParam ()
 Prints the name of the preconditioner.
void PreProcess (void *&context, SparseMatrix< T > &A)
 Saves the system matrix.
void Run (void *&context, MultiVector< T > &r, MultiVector< T > &c)
 Applies the preconditioner to a given vector 'r', i.e. computes $c \leftarrow W^{-1} \cdot r$.
 SORPrecond (unsigned the_disp_type, T the_omega, bool sym=0)
 Constructor which sets the display type and the symmetry flag.

Detailed Description

template<typename T>
class SORPrecond< T >

The Gauss-Seidel preconditioner class template.


Constructor & Destructor Documentation

template<typename T>
SORPrecond< T >::SORPrecond ( unsigned  the_disp_type,
the_omega,
bool  sym = 0 
) [inline]

Constructor which sets the display type and the symmetry flag.


Member Function Documentation

template<typename T>
void SORPrecond< T >::PrintParam (  )  [inline, virtual]

Prints the name of the preconditioner.

Implements SysPrecond< T >.

template<typename T>
void SORPrecond< T >::PreProcess ( void *&  context,
SparseMatrix< T > &  A 
) [inline, virtual]

Saves the system matrix.

Parameters:
[in] context The preconditioner context to initialize
[in] A The system matrix hierarchy

Implements LinPrecond< T >.

template<typename T>
void SORPrecond< T >::Run ( void *&  context,
MultiVector< T > &  r,
MultiVector< T > &  c 
) [inline, virtual]

Applies the preconditioner to a given vector 'r', i.e. computes $c \leftarrow W^{-1} \cdot r$.

Parameters:
[in] context The preconditioner context
[in] r The residual
[in] c The correction

Implements LinPrecond< T >.


The documentation for this class was generated from the following files:
Generated on Fri Sep 21 12:34:39 2007 for SG2 by  doxygen 1.5.2