Download include/eigen/doc/snippets/BiCGSTAB_step_by_step.cpp from adfa5456/FastRobustICP: direct link, hf CLI and curl.
- Browser
- Download file 407 Bytes
-
https://huggingface.co/datasets/adfa5456/FastRobustICP/resolve/main/include/eigen/doc/snippets/BiCGSTAB_step_by_step.cpp
- Command line
-
hf download hf://datasets/adfa5456/FastRobustICP/include/eigen/doc/snippets/BiCGSTAB_step_by_step.cpp
-
curl -L -o BiCGSTAB_step_by_step.cpp https://huggingface.co/datasets/adfa5456/FastRobustICP/resolve/main/include/eigen/doc/snippets/BiCGSTAB_step_by_step.cpp
407 Bytes
| int n = 10000; | |
| VectorXd x(n), b(n); | |
| SparseMatrix<double> A(n,n); | |
| /* ... fill A and b ... */ | |
| BiCGSTAB<SparseMatrix<double> > 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); | |