HCL_CG_d implements the (unpreconditioned) conjugate gradients algorithm for solving a linear operator equation with a symmetric positive definite operator
![]() | HCL_CG_d ( char *fname = NULL, HCL_Recorder_d * rec = NULL) Constructor |
![]() | Parameters () const Access to parameter table |
![]() | Solve ( const HCL_LinearOp_d & A, const HCL_Vector_d & b, HCL_Vector_d & x ) const Solve (approximately) the equation Ax=b for x |
![]() | Write ( ostream & str ) const Prints description of the object |
HCL_CG_d implements the (unpreconditioned) conjugate gradients algorithm for solving a linear operator equation with a symmetric positive definite operator. By passing an (optional pointer to an) HCL_Recorder_d object, the user can record all of the intermediate estimates of the solution generated during the iteration.
Default = 0
Table& Parameters() const
virtual int Solve( const HCL_LinearOp_d & A, const HCL_Vector_d & b, HCL_Vector_d & x ) const
b - RHS vector
x - Initially, this must be a starting vector for the
iteration. On exit, this contains the approximate solution
virtual ostream& Write( ostream & str ) const
Input Parameters
double Tol
Default = 1.0e-3
int MaxItn
Default = 100
int DispFlag
0 - No output
1 - One-line summary output
2 - Detailed header and footer with timing information
3 - Per-iteration information Output parameters
alphabetic index hierarchy of classes
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de