![]() |
00001 // Copyright (C) 2004 Johan Hoffman and Anders Logg. 00002 // Licensed under the GNU GPL Version 2. 00003 00004 #ifndef __LINEAR_SOLVER_H 00005 #define __LINEAR_SOLVER_H 00006 00007 namespace dolfin 00008 { 00009 00010 class Matrix; 00011 class Vector; 00012 00019 00020 class LinearSolver 00021 { 00022 protected: 00023 00025 void check(const Matrix& A, Vector& x, const Vector& b) const; 00026 00028 real residual(const Matrix& A, Vector& x, const Vector& b) const; 00029 00033 void iterate(const Matrix& A, Vector& x, const Vector& b, 00034 real tol, unsigned int maxiter); 00035 00037 virtual void iteration(const Matrix& A, Vector& x, const Vector& b); 00038 00039 }; 00040 00041 } 00042 00043 #endif
Documentation automatically generated with Doxygen on 10 Sep 2004.