Download include/eigen/doc/snippets/BiCGSTAB_simple.cpp from adfa5456/FastRobustICP: direct link, hf CLI and curl.
- Browser
- Download file 394 Bytes
-
https://huggingface.co/datasets/adfa5456/FastRobustICP/resolve/main/include/eigen/doc/snippets/BiCGSTAB_simple.cpp
- Command line
-
hf download hf://datasets/adfa5456/FastRobustICP/include/eigen/doc/snippets/BiCGSTAB_simple.cpp
-
curl -L -o BiCGSTAB_simple.cpp https://huggingface.co/datasets/adfa5456/FastRobustICP/resolve/main/include/eigen/doc/snippets/BiCGSTAB_simple.cpp
394 Bytes
| 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 | |