Actual source code: cgctx.h
1: /* "$Id: cgctx.h,v 1.12 2001/08/07 21:30:43 bsmith Exp $"; */
3: /*
4: Private Krylov Context Structure (KSP) for Conjugate Gradient
6: This one is very simple. It contains a flag indicating the symmetry
7: structure of the matrix and work space for (optionally) computing
8: eigenvalues.
10: */
15: /*
16: Defines the basic KSP object
17: */
18: #include src/sles/ksp/kspimpl.h
20: /*
21: The field should remain the same since it is shared by the BiCG code
22: */
24: typedef struct {
25: KSPCGType type; /* type of system (symmetric or Hermitian) */
26: PetscScalar emin,emax; /* eigenvalues */
27: PetscScalar *e,*d;
28: PetscReal *ee,*dd; /* work space for Lanczos algorithm */
29: } KSP_CG;
31: #endif