Go to the source code of this file.
◆ main()
Definition at line 82 of file matrixfree_cg.cpp.
99 std::cout <<
"CG: #iterations: " << cg.
iterations() <<
", estimated error: " << cg.
error() << std::endl;
106 std::cout <<
"BiCGSTAB: #iterations: " << bicg.
iterations() <<
", estimated error: " << bicg.
error() << std::endl;
110 Eigen::GMRES<MatrixReplacement, Eigen::IdentityPreconditioner> gmres;
113 std::cout <<
"GMRES: #iterations: " << gmres.iterations() <<
", estimated error: " << gmres.error() << std::endl;
117 Eigen::DGMRES<MatrixReplacement, Eigen::IdentityPreconditioner> gmres;
120 std::cout <<
"DGMRES: #iterations: " << gmres.iterations() <<
", estimated error: " << gmres.error() << std::endl;
124 Eigen::MINRES<MatrixReplacement, Eigen::Lower|Eigen::Upper, Eigen::IdentityPreconditioner> minres;
127 std::cout <<
"MINRES: #iterations: " << minres.iterations() <<
", estimated error: " << minres.error() << std::endl;
A bi conjugate gradient stabilized solver for sparse square problems.
A conjugate gradient solver for sparse (or dense) self-adjoint problems.
static const RandomReturnType Random()
Derived & compute(const EigenBase< MatrixDerived > &A)
The matrix class, also used for vectors and row-vectors.
TransposeReturnType transpose()
const Solve< Derived, Rhs > solve(const MatrixBase< Rhs > &b) const