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

dolfin::LinearSolver Class Reference

#include <LinearSolver.h>

Inheritance diagram for dolfin::LinearSolver:

Inheritance graph
[legend]
List of all members.

Protected Member Functions

void check (const Matrix &A, Vector &x, const Vector &b) const
 Check data for linear system.

real residual (const Matrix &A, Vector &x, const Vector &b) const
 Compute l2-norm of residual.

void iterate (const Matrix &A, Vector &x, const Vector &b, real tol, unsigned int maxiter)
virtual void iteration (const Matrix &A, Vector &x, const Vector &b)
 Perform one iteration on the linear system.


Detailed Description

The class LinearSolver serves as a base class for all linear solvers and provides a number of utilites to simplify the implementation of iterative methods.

A linear solver solves (approximately) a linear system Ax = b for a given right-hand side b.


Member Function Documentation

void LinearSolver::check const Matrix A,
Vector x,
const Vector b
const [protected]
 

Check data for linear system.

void LinearSolver::iterate const Matrix A,
Vector x,
const Vector b,
real  tol,
unsigned int  maxiter
[protected]
 

Iterative solution of the linear system. The virtual function iteration() is called in each iteration and should be implemented by a subclass making use of this function.

void LinearSolver::iteration const Matrix A,
Vector x,
const Vector b
[protected, virtual]
 

Perform one iteration on the linear system.

real LinearSolver::residual const Matrix A,
Vector x,
const Vector b
const [protected]
 

Compute l2-norm of residual.


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


Documentation automatically generated with Doxygen on 10 Sep 2004.