ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/freemol/trunk/src/mengine/src/tncg.c
(Generate patch)
# Line 30 | Line 30
30   #define  blank       5
31  
32   void outminstat(int , double ,double );
33 < void tncg(double,int,int,int *,double *,double *, double, double (*)(),  double (*)());
33 > void tncg(double,int,int,int *,double *,double *, double, double (*)(double *,double *),
34 >          double (*)(int,double *,double *,int *, int *, int *, double *));
35   double fgvalue(double *, double *);
36 < void search(int,double *,double *,double *,double *,double,double *,int *,double (*)(),int *);
36 > void search(int,double *,double *,double *,double *,double,double *,int *,double (*)(double *,double *),int *);
37   void solve(int,int,int,int, double *,double *,double *,double *,int *,
38 <              int *,int *,double *,int *,int *,int *, double (*)());
38 >              int *,int *,double *,int *,int *,int *, double (*)(double *, double *));
39   void hmatrix(int,double *,double *,int *, int *, int *, double *);
40   void write_sdf(int);
41  
# Line 45 | Line 46
46      
47   double hesscut;
48  
49 < void tncg(double start_time,int nvar,int imethod,int *iter,double *x,double *minimum, double grdmin,double (*fgvalue) (),double (*hmatrix) ())
49 > void tncg(double start_time,int nvar,int imethod,int *iter,double *x,double *minimum,
50 >          double grdmin, double (*fgvalue) (double *,double *),
51 >          double (*hmatrix)(int,double *,double *,int *, int *, int *, double *))
52   {
53      int i,  iter_tn, iter_cg, fg_call, newhess;
54      int *h_init, *h_stop, *h_index;         // h_init[maxvar], h_stop[maxvar], h_index[MAXHESS];

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines