Date: 2013-07-02T14:48:01+00:00

Actual source code: cgimpl.h
petsc-3.4.2 2013-07-02

      2: /*
      3:     Private Krylov Context Structure (KSP) for Conjugate Gradient

      5:     This one is very simple. It contains a flag indicating the symmetry
      6:    structure of the matrix and work space for (optionally) computing
      7:    eigenvalues.

      9: */

     14: /*
     15:         Defines the basic KSP object
     16: */
     17: #include <petsc-private/kspimpl.h>

     19: /*
     20:     The field should remain the same since it is shared by the BiCG code
     21: */

     23: typedef struct {
     24:   KSPCGType   type;                 /* type of system (symmetric or Hermitian) */
     25:   PetscScalar emin,emax;           /* eigenvalues */
     26:   PetscScalar *e,*d;
     27:   PetscReal   *ee,*dd;             /* work space for Lanczos algorithm */

     29:   PetscBool singlereduction;          /* use variant of CG that combines both inner products */
     30: } KSP_CG;

     32: #endif