CG
Conjugate gradient solver for symmetric positive definite systems.
template < class LinearSystem> class CG;
| 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 |
|---|---|
Math::LinearSystem<…>Full specializationtemplate < class Scalar> class CG< Math::LinearSystem< Math::Matrix< Scalar >, Math::Vector< Scalar > >> final; | Conjugate gradient solver for symmetric positive definite dense systems. |
Math::LinearSystem<…>Full specializationtemplate < class Scalar> class CG< Math::LinearSystem< Math::SparseMatrix< Scalar >, Math::Vector< Scalar > >> final; | Conjugate gradient solver for symmetric positive definite sparse systems. |
PETSc::Math::LinearSystemFull specializationtemplate <> class CG< PETSc::Math::LinearSystem> final; | Conjugate gradient solver for PETSc linear systems. |