Public Member Functions | List of all members
Diag_Precond Class Reference

Diagonal preconditioner class. More...

#include <diag_precond.hpp>

Inheritance diagram for Diag_Precond:
Precond

Public Member Functions

 Diag_Precond (const Matrix &A)
 Constructor for a diagonal preconditioner for matrix A. More...
 
 ~Diag_Precond ()
 Destructor. More...
 
void solve (Vector &x, const Vector &b) const
 Solve M* x = b and return x. More...
 
- Public Member Functions inherited from Precond
virtual ~Precond ()
 Virtual destructor. More...
 

Detailed Description

Diagonal preconditioner class.

Constructor & Destructor Documentation

Diag_Precond::Diag_Precond ( const Matrix A)

Constructor for a diagonal preconditioner for matrix A.

Diag_Precond::~Diag_Precond ( )
inline

Destructor.

Member Function Documentation

void Diag_Precond::solve ( Vector x,
const Vector b 
) const
virtual

Solve M* x = b and return x.

Implements Precond.


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