Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

dolfin::Jacobi Class Reference

#include <Jacobi.h>

Inheritance diagram for dolfin::Jacobi:

Inheritance graph
[legend]
Collaboration diagram for dolfin::Jacobi:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Jacobi (const Matrix &A, real tol, unsigned int maxiter)
 Create Jacobi preconditioner/solver for a given matrix.

 ~Jacobi ()
 Destructor.

void solve (Vector &x, const Vector &b)
 Solve linear system Ax = b for a given right-hand side b.


Static Public Member Functions

void solve (const Matrix &A, Vector &x, const Vector &b, real tol, unsigned int maxiter)
 Solve linear system Ax = b for a given right-hand side b.


Detailed Description

This class implements the standard Jacobi method for a linear system. It implements the interface specified by the class Preconditioner. It also provides a static method for the solution of a given linear system. It may thus be used both as a preconditioner and as a linear solver.


Constructor & Destructor Documentation

Jacobi::Jacobi const Matrix A,
real  tol,
unsigned int  maxiter
 

Create Jacobi preconditioner/solver for a given matrix.

Jacobi::~Jacobi  ) 
 

Destructor.


Member Function Documentation

void Jacobi::solve const Matrix A,
Vector x,
const Vector b,
real  tol,
unsigned int  maxiter
[static]
 

Solve linear system Ax = b for a given right-hand side b.

void Jacobi::solve Vector x,
const Vector b
[virtual]
 

Solve linear system Ax = b for a given right-hand side b.

Implements dolfin::Preconditioner.


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


Documentation automatically generated with Doxygen on 10 Sep 2004.