#include <Rodin/Solver/ForwardDecls.h>
template<class LinearSystem>
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.
| Specialization | Description |
|---|---|
| CG<Math:: | Iterative conjugate gradient solver for sparse SPD systems. |
| CG<Math:: | Iterative conjugate gradient solver for dense SPD systems. |
| CG<PETSc:: | PETSc KSP-backed conjugate gradient solver. |