#include <CG.hpp>
Inheritance diagram for CG:


Purpose: Define the Conjugate Gradient version 1 Linear Solver
Used to solve a set of linearized differencial equations,....
Some restoration are of the style: A * iNew = iOld
iNew could be X, and iOld could be b.
@ Copyrights: Bernard De Cuyper & Eddy Fraiha 2002, Eggs & Pictures. MIT/Open BSD copyright model.
Public Methods | |
| CG (int asize, int iterMax, double eps=1e-4) | |
| virtual | ~CG () |
| virtual bool | iterate () |
| virtual void | output () |
| virtual void | output (FILE *file) |
Protected Attributes | |
| double | alpha |
| double | beta |
| RealVector * | r |
| RealVector * | p |
| RealVector * | ap |
![]() |
