fsolvetable.c

Go to the documentation of this file.
00001 /*-----------------------------------------------------------------------------------*/
00002 /* INRIA */
00003 /*-----------------------------------------------------------------------------------*/
00004 #include "FTables.h"
00005 /***********************************
00006 * Search Table for fsolve 
00007 ***********************************/
00008 
00009 #define ARGS_fsolvf integer*,double *,double*,integer*
00010 typedef void (*fsolvff)(ARGS_fsolvf);
00011 
00012 #define ARGS_fsolvj integer*,double*,double*,integer*
00013 typedef void (*fsolvjf)(ARGS_fsolvj);
00014 
00015 
00016 /**************** fsolvf ***************/
00017 extern void C2F(fsol1)(ARGS_fsolvf);
00018 void C2F(fsolvf)(ARGS_fsolvf);
00019 void C2F(setfsolvf)(char *name, int *rep);
00020 
00021 FTAB FTab_fsolvf[] ={
00022 {"fsol1", (voidf)  C2F(fsol1)},
00023 {(char *) 0, (voidf) 0}};
00024 /**************** fsolvj ***************/
00025 extern void C2F(fsolj1)(ARGS_fsolvj);
00026 void C2F(fsolvj)(ARGS_fsolvj);
00027 void C2F(setfsolj)(char *name, int *rep);
00028 void C2F(setfsolvj)(char *name, int *rep);
00029 
00030 FTAB FTab_fsolvj[] ={
00031 {"fsolj1", (voidf)  C2F(fsolj1)},
00032 {(char *) 0, (voidf) 0}};
00033 
00034 /***********************************
00035 * Search Table for fsolve 
00036 *    uses : fsolvf and fsolvj 
00037 ***********************************/
00038 
00041 static fsolvff fsolvffonc ;
00042 
00045 void C2F(fsolvf)(integer *n, double *x, double *fvec, integer *iflag)
00046 {
00047         (*fsolvffonc)(n,x,fvec,iflag);
00048 }
00049 
00052 void C2F(setfsolvf)(char *name, int *rep)
00053 {
00054         fsolvffonc = (fsolvff) SetFunction(name,rep,FTab_fsolvf);
00055 }
00056 
00059 static fsolvjf fsolvjfonc ;
00060 
00063 void C2F(fsolvj)(integer *n, double *x, double *fjac, integer *iflag)
00064 {
00065         (*fsolvjfonc)(n,x,fjac,iflag);
00066 }
00067 
00070 void C2F(setfsolvj)(char *name, int *rep)
00071 {
00072         fsolvjfonc = (fsolvjf) SetFunction(name,rep,FTab_fsolvj);
00073 }

Generated on Sun Mar 4 15:03:58 2007 for Scilab [trunk] by  doxygen 1.5.1