Initial commit

This commit is contained in:
Efim Beshmenev
2026-07-10 19:16:42 +03:00
commit 7f9dc067a1
3620 changed files with 516098 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
int n = 10000;
VectorXd x(n), b(n);
SparseMatrix<double> A(n,n);
/* ... fill A and b ... */
BiCGSTAB<SparseMatrix<double> > solver;
solver.compute(A);
x = solver.solve(b);
std::cout << "#iterations: " << solver.iterations() << std::endl;
std::cout << "estimated error: " << solver.error() << std::endl;
/* ... update b ... */
x = solver.solve(b); // solve again