*** empty log message ***

This commit is contained in:
jiri 2005-02-02 20:01:07 +00:00
parent 10c0143fc4
commit 0dc73dad47
1 changed files with 13 additions and 0 deletions

13
gmres.h Normal file
View File

@ -0,0 +1,13 @@
#include "vec.h"
#include "smat.h"
#include "mat.h"
#include "sparsemat.h"
#include "nonclass.h"
//GMRES solution of a linear system
//matrix can be any class which has nrows(), ncols(), diagonalof() and NRVec::gemv() available
//does not even have to be explicitly stored
template<typename T, typename Matrix>
extern void gmres(const Matrix &bigmat, const NRVec<T> &b, NRVec<T> &x, const bool doguess=1, const double eps=1e-7, const int MAXIT=50, int neustart=0, const bool verbose=1, bool square=1,const bool precondition=1);