From f0238cfb6997c4acfc2bd200de7295f3fa36968f Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 3 Mar 2019 21:09:10 +0100 Subject: don't index Eigen --- eigen/doc/snippets/BiCGSTAB_step_by_step.cpp | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 eigen/doc/snippets/BiCGSTAB_step_by_step.cpp (limited to 'eigen/doc/snippets/BiCGSTAB_step_by_step.cpp') diff --git a/eigen/doc/snippets/BiCGSTAB_step_by_step.cpp b/eigen/doc/snippets/BiCGSTAB_step_by_step.cpp deleted file mode 100644 index 06147bb..0000000 --- a/eigen/doc/snippets/BiCGSTAB_step_by_step.cpp +++ /dev/null @@ -1,14 +0,0 @@ - int n = 10000; - VectorXd x(n), b(n); - SparseMatrix A(n,n); - /* ... fill A and b ... */ - BiCGSTAB > solver(A); - // start from a random solution - x = VectorXd::Random(n); - solver.setMaxIterations(1); - int i = 0; - do { - x = solver.solveWithGuess(b,x); - std::cout << i << " : " << solver.error() << std::endl; - ++i; - } while (solver.info()!=Success && i<100); \ No newline at end of file -- cgit v1.2.3