ParMooN
 All Classes Functions Variables Friends Pages
Cg.h
1 #ifndef __CG__
2 #define __CG__
3 
4 #include <ItMethod.h>
5 
7 class TCg : public TItMethod
8 {
9  protected:
10 
12  double *r;
13  double *z;
14  double *p;
15  double *Ap;
16  //TODO eingefuegt fuer Polak-Ribiere
17  double *r_last;
18  //TODO eingefuegt fuer Polak-Ribiere
19  //TODO eingefuegt fer flexible Paper
20  double **d;
21  //TODO eingefuegt fer flexible Paper
22 
25  public:
27  TCg(MatVecProc *MatVec, DefectProc *Defect, TItMethod *Prec,
28  int n_aux, int N_Unknowns, int scalar);
29 
31  ~TCg();
32 
34  int Iterate(TSquareMatrix **A, TMatrix **B, double *sol,
35  double *rhs);
36 };
37 #endif
double * r
Definition: Cg.h:12
Definition: Matrix.h:21
Definition: Cg.h:7
~TCg()
Definition: Cg.C:73
int Iterate(TSquareMatrix **A, TMatrix **B, double *sol, double *rhs)
Definition: Cg.C:88
Definition: SquareMatrix.h:20
TCg(MatVecProc *MatVec, DefectProc *Defect, TItMethod *Prec, int n_aux, int N_Unknowns, int scalar)
Definition: Cg.C:13
Definition: ItMethod.h:19