Actual source code: cgimpl.h

  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 <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