template<class LinearSystem>
Rodin::Solver::CG class

Conjugate gradient solver for symmetric positive definite systems.

Template parameters
LinearSystem Type of linear system to solve

The CG method is an iterative solver particularly efficient for large sparse symmetric positive definite systems.

SpecializationDescription
CG<Math::LinearSystem<Math::SparseMatrix<Scalar>, Math::Vector<Scalar>>>Iterative conjugate gradient solver for sparse SPD systems.
CG<Math::LinearSystem<Math::Matrix<Scalar>, Math::Vector<Scalar>>>Iterative conjugate gradient solver for dense SPD systems.
CG<PETSc::Math::LinearSystem>PETSc KSP-backed conjugate gradient solver.