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

dolfin::KrylovSolver Class Reference

Krylov solver, including conjugate gradient (CG), GMRES and BiCGSTAB. More...

#include <KrylovSolver.h>

Collaboration diagram for dolfin::KrylovSolver:

Collaboration graph
[legend]
List of all members.

Public Types

enum  Method { GMRES, CG, BiCGSTAB }
enum  Preconditioner {
  RICHARDSON, JACOBI, GAUSS_SEIDEL, SOR,
  NONE
}

Public Member Functions

 KrylovSolver (Method method=GMRES)
void solve (const Matrix &A, Vector &x, const Vector &b)
void setMethod (Method method)
void setPreconditioner (Preconditioner pc)

Detailed Description

Krylov solver, including conjugate gradient (CG), GMRES and BiCGSTAB.


Member Enumeration Documentation

enum dolfin::KrylovSolver::Method
 

Enumeration values:
GMRES 
CG 
BiCGSTAB 

enum dolfin::KrylovSolver::Preconditioner
 

Enumeration values:
RICHARDSON 
JACOBI 
GAUSS_SEIDEL 
SOR 
NONE 


Constructor & Destructor Documentation

KrylovSolver::KrylovSolver Method  method = GMRES  ) 
 


Member Function Documentation

void KrylovSolver::setMethod Method  method  ) 
 

void KrylovSolver::setPreconditioner Preconditioner  pc  ) 
 

void KrylovSolver::solve const Matrix A,
Vector x,
const Vector b
 


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


Documentation automatically generated with Doxygen on 10 Sep 2004.