xref: /petsc/src/ksp/ksp/impls/cg/stcg/stcgimpl.h (revision 101da5f51f3cf6340ec2fbcb4e4bcb2c811922e6)
1 /*****************************************************************************/
2 /* Context for using preconditioned conjugate gradient method to minimized a */
3 /* quadratic function subject to a trust region constraint.  If the matrix   */
4 /* is indefinite, a direction of negative curvature may be encountered.  If  */
5 /* a direction of negative curvature is found, then we follow it to the      */
6 /* boundary of the trust region.                                             */
7 /*                                                                           */
8 /* This method is described in:                                              */
9 /*   T. Steihaug, "The Conjugate Gradient Method and Trust Regions in Large  */
10 /*     Scale Optimization", SIAM Journal on Numerical Analysis, 20,          */
11 /*     pages 626-637, 1983.                                                  */
12 /*****************************************************************************/
13 
14 #if !defined(__CG_STCG)
15 #define __CG_STCG
16 
17 #include <petsc/private/kspimpl.h>
18 
19 typedef struct {
20   PetscReal radius;
21   PetscReal norm_d;
22   PetscReal o_fcn;
23   PetscInt  dtype;
24 } KSPCG_STCG;
25 
26 #endif
27 
28