Actual source code: cg.h

      1: /*$Id: cg.h 1.24 02/09/17 15:08:53-05:00 benson@rockies.mcs.anl.gov $*/

      3: /*
      4:     Context for conjugate gradient method (unconstrained minimization)
      5:  */

      7: #ifndef __TAO_CG_H
      9: #include "tao_solver.h"

     12: typedef struct{

     14:   double beta;
     15:   double eta;
     16:   int restarts;

     18:   TaoVec* G;
     19:   TaoVec* DX;
     20:   TaoVec* Gprev;
     21:   TaoVec* Work;

     23: } TAO_CG;

     25: int TaoSetUp_CG(TAO_SOLVER,void *);
     26: int TaoDestroy_CG(TAO_SOLVER, void *);
     27: int TaoSetOptions_CG(TAO_SOLVER, void*);
     28: int TaoView_CG(TAO_SOLVER,void*);
     29: int TaoCGSetRestartTol(TAO_SOLVER,double);

     31: #endif