Incomplete Cholesky preconditioner... not yet stable

This commit is contained in:
Desire NUENTSA
2012-09-11 12:12:19 +02:00
parent 504edbddb1
commit 45672e724e
4 changed files with 275 additions and 53 deletions

View File

@@ -13,7 +13,7 @@
#include <Eigen/SuperLUSupport>
// #include <unsupported/Eigen/src/IterativeSolvers/Scaling.h>
#include <bench/BenchTimer.h>
#include <unsupported/Eigen/IterativeSolvers>
using namespace std;
using namespace Eigen;
@@ -26,7 +26,8 @@ int main(int argc, char **args)
VectorXd b, x, tmp;
BenchTimer timer,totaltime;
//SparseLU<SparseMatrix<double, ColMajor> > solver;
SuperLU<SparseMatrix<double, ColMajor> > solver;
// SuperLU<SparseMatrix<double, ColMajor> > solver;
ConjugateGradient<SparseMatrix<double, ColMajor>, Lower,IncompleteCholesky<double,Lower> > solver;
ifstream matrix_file;
string line;
int n;