Changeset 3083 in Sophya


Ignore:
Timestamp:
Sep 19, 2006, 3:44:03 PM (19 years ago)
Author:
cmv
Message:

extraction de GeneralFunction+ GeneralFunc de generalfit.h,cc -> generalfunc.h,cc cmv 19/09/2006

Location:
trunk/SophyaLib/NTools
Files:
2 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/NTools/Makefile

    r3075 r3083  
    44 
    55clean:
    6          rm -f $(SOPHYAOBJP)cimage.o $(SOPHYAOBJP)cspline.o $(SOPHYAOBJP)datatypes.o $(SOPHYAOBJP)dates.o $(SOPHYAOBJP)difeq.o $(SOPHYAOBJP)dynccd.o $(SOPHYAOBJP)fct1dfit.o $(SOPHYAOBJP)fct2dfit.o $(SOPHYAOBJP)fftmserver.o $(SOPHYAOBJP)fftpserver.o $(SOPHYAOBJP)fftservintf.o $(SOPHYAOBJP)FSAppIrrSmpl.o $(SOPHYAOBJP)functab.o $(SOPHYAOBJP)generaldata.o $(SOPHYAOBJP)generalfit.o $(SOPHYAOBJP)imageop.o $(SOPHYAOBJP)integ.o $(SOPHYAOBJP)median.o $(SOPHYAOBJP)ntoolsinit.o $(SOPHYAOBJP)objfitter.o $(SOPHYAOBJP)perandom.o $(SOPHYAOBJP)poly.o $(SOPHYAOBJP)rk4cdifeq.o $(SOPHYAOBJP)simplesort.o $(SOPHYAOBJP)simplex.o $(SOPHYAOBJP)tabmath.o $(SOPHYAOBJP)toeplitzMatrix.o $(SOPHYAOBJP)datime.o $(SOPHYAOBJP)fftmayer_r4.o $(SOPHYAOBJP)fftmayer_r8.o $(SOPHYAOBJP)fftpackc.o $(SOPHYAOBJP)matxop.o $(SOPHYAOBJP)nbmath.o $(SOPHYAOBJP)nbtri.o
     6         rm -f $(SOPHYAOBJP)cimage.o $(SOPHYAOBJP)cspline.o $(SOPHYAOBJP)datatypes.o $(SOPHYAOBJP)dates.o $(SOPHYAOBJP)difeq.o $(SOPHYAOBJP)dynccd.o $(SOPHYAOBJP)fct1dfit.o $(SOPHYAOBJP)fct2dfit.o $(SOPHYAOBJP)fftmserver.o $(SOPHYAOBJP)fftpserver.o $(SOPHYAOBJP)fftservintf.o $(SOPHYAOBJP)FSAppIrrSmpl.o $(SOPHYAOBJP)functab.o $(SOPHYAOBJP)generaldata.o $(SOPHYAOBJP)generalfit.o $(SOPHYAOBJP)generalfunc.o $(SOPHYAOBJP)imageop.o $(SOPHYAOBJP)integ.o $(SOPHYAOBJP)median.o $(SOPHYAOBJP)ntoolsinit.o $(SOPHYAOBJP)objfitter.o $(SOPHYAOBJP)perandom.o $(SOPHYAOBJP)poly.o $(SOPHYAOBJP)rk4cdifeq.o $(SOPHYAOBJP)simplesort.o $(SOPHYAOBJP)simplex.o $(SOPHYAOBJP)tabmath.o $(SOPHYAOBJP)toeplitzMatrix.o $(SOPHYAOBJP)datime.o $(SOPHYAOBJP)fftmayer_r4.o $(SOPHYAOBJP)fftmayer_r8.o $(SOPHYAOBJP)fftpackc.o $(SOPHYAOBJP)matxop.o $(SOPHYAOBJP)nbmath.o $(SOPHYAOBJP)nbtri.o
    77        rm -f $(SOPHYALIBP)libNTools.a
    88 
    9 $(SOPHYALIBP)libNTools.a : $(SOPHYAOBJP)cimage.o $(SOPHYAOBJP)cspline.o $(SOPHYAOBJP)datatypes.o $(SOPHYAOBJP)dates.o $(SOPHYAOBJP)datime.o $(SOPHYAOBJP)difeq.o $(SOPHYAOBJP)dynccd.o $(SOPHYAOBJP)fct1dfit.o $(SOPHYAOBJP)fct2dfit.o $(SOPHYAOBJP)fftmayer_r4.o $(SOPHYAOBJP)fftmayer_r8.o $(SOPHYAOBJP)fftmserver.o $(SOPHYAOBJP)fftpackc.o $(SOPHYAOBJP)fftpserver.o $(SOPHYAOBJP)fftservintf.o $(SOPHYAOBJP)FSAppIrrSmpl.o $(SOPHYAOBJP)functab.o $(SOPHYAOBJP)generaldata.o $(SOPHYAOBJP)generalfit.o $(SOPHYAOBJP)integ.o $(SOPHYAOBJP)matxop.o $(SOPHYAOBJP)median.o $(SOPHYAOBJP)nbmath.o $(SOPHYAOBJP)nbtri.o $(SOPHYAOBJP)ntoolsinit.o $(SOPHYAOBJP)objfitter.o $(SOPHYAOBJP)perandom.o $(SOPHYAOBJP)poly.o $(SOPHYAOBJP)rk4cdifeq.o $(SOPHYAOBJP)simplesort.o $(SOPHYAOBJP)simplex.o $(SOPHYAOBJP)tabmath.o $(SOPHYAOBJP)toeplitzMatrix.o
     9$(SOPHYALIBP)libNTools.a : $(SOPHYAOBJP)cimage.o $(SOPHYAOBJP)cspline.o $(SOPHYAOBJP)datatypes.o $(SOPHYAOBJP)dates.o $(SOPHYAOBJP)datime.o $(SOPHYAOBJP)difeq.o $(SOPHYAOBJP)dynccd.o $(SOPHYAOBJP)fct1dfit.o $(SOPHYAOBJP)fct2dfit.o $(SOPHYAOBJP)fftmayer_r4.o $(SOPHYAOBJP)fftmayer_r8.o $(SOPHYAOBJP)fftmserver.o $(SOPHYAOBJP)fftpackc.o $(SOPHYAOBJP)fftpserver.o $(SOPHYAOBJP)fftservintf.o $(SOPHYAOBJP)FSAppIrrSmpl.o $(SOPHYAOBJP)functab.o $(SOPHYAOBJP)generaldata.o $(SOPHYAOBJP)generalfit.o $(SOPHYAOBJP)generalfunc.o $(SOPHYAOBJP)integ.o $(SOPHYAOBJP)matxop.o $(SOPHYAOBJP)median.o $(SOPHYAOBJP)nbmath.o $(SOPHYAOBJP)nbtri.o $(SOPHYAOBJP)ntoolsinit.o $(SOPHYAOBJP)objfitter.o $(SOPHYAOBJP)perandom.o $(SOPHYAOBJP)poly.o $(SOPHYAOBJP)rk4cdifeq.o $(SOPHYAOBJP)simplesort.o $(SOPHYAOBJP)simplex.o $(SOPHYAOBJP)tabmath.o $(SOPHYAOBJP)toeplitzMatrix.o
    1010        $(AR) $(ARFLAGS) $@ $?
    1111        touch $(SOPHYAINCP)/SophyaConfInfo/libsophya.objlist
     
    141141  peida.h $(SOPHYAINCP)utils.h \
    142142  $(SOPHYAINCP)perrors.h fmath.h \
    143   nbconst.h tabmath.h
     143  generalfunc.h nbconst.h tabmath.h
    144144        $(CXXCOMPILE) $(CXXTEMPFLG) -o $@  fct1dfit.cc
    145145 
     
    171171  peida.h $(SOPHYAINCP)utils.h \
    172172  $(SOPHYAINCP)perrors.h fmath.h \
    173   nbconst.h tabmath.h simps2d.h
     173  generalfunc.h nbconst.h tabmath.h simps2d.h
    174174        $(CXXCOMPILE) $(CXXTEMPFLG) -o $@  fct2dfit.cc
    175175 
     
    334334  $(SOPHYAINCP)ntupintf.h poly.h \
    335335  peida.h $(SOPHYAINCP)utils.h \
    336   $(SOPHYAINCP)perrors.h fmath.h
     336  $(SOPHYAINCP)perrors.h fmath.h \
     337  generalfunc.h
    337338        $(CXXCOMPILE) $(CXXTEMPFLG) -o $@  generaldata.cc
    338339 
     
    364365  peida.h $(SOPHYAINCP)utils.h \
    365366  $(SOPHYAINCP)perrors.h fmath.h \
     367  generalfunc.h \
    366368  $(SOPHYAINCP)sopemtx.h
    367369        $(CXXCOMPILE) $(CXXTEMPFLG) -o $@  generalfit.cc
    368370 
     371$(SOPHYAOBJP)generalfunc.o: generalfunc.cc generalfunc.h \
     372  $(SOPHYAINCP)sopnamsp.h \
     373  $(SOPHYAINCP)machdefs.h \
     374  $(SOPHYAINCP)pexceptions.h
     375        $(CXXCOMPILE) $(CXXTEMPFLG) -o $@  generalfunc.cc
     376 
    369377$(SOPHYAOBJP)integ.o: integ.cc \
    370378  $(SOPHYAINCP)sopnamsp.h integ.h \
     
    393401  $(SOPHYAINCP)ntupintf.h poly.h \
    394402  peida.h $(SOPHYAINCP)utils.h \
    395   $(SOPHYAINCP)perrors.h fmath.h
     403  $(SOPHYAINCP)perrors.h fmath.h \
     404  generalfunc.h
    396405        $(CXXCOMPILE) $(CXXTEMPFLG) -o $@  integ.cc
    397406 
     
    465474  generalfit.h generaldata.h \
    466475  $(SOPHYAINCP)ntupintf.h poly.h \
    467   peida.h
     476  peida.h generalfunc.h
    468477        $(CXXCOMPILE) $(CXXTEMPFLG) -o $@  objfitter.cc
    469478 
     
    589598  peida.h $(SOPHYAINCP)utils.h \
    590599  $(SOPHYAINCP)perrors.h fmath.h \
     600  generalfunc.h \
    591601  $(SOPHYAINCP)ntuple.h \
    592602  $(SOPHYAINCP)timing.h
  • trunk/SophyaLib/NTools/generalfit.cc

    r2615 r3083  
    66#include <math.h>
    77#ifdef __MWERKS__
    8    #include "mwerksmath.h" // Portage mac D. Y.
     8#include "mwerksmath.h" // Portage mac D. Y.
    99#include "unixmac.h"
    1010#endif
     
    1717
    1818#define EPS_FIT_MIN 1.e-8
    19 
    20 //================================================================
    21 // GeneralFunction
    22 //================================================================
    23 
    24 /*!
    25   \class SOPHYA::GeneralFunction
    26   \ingroup NTools
    27    Classe de fonctions parametrees a plusieurs variables:
    28   \f$ F[x1,x2,x3,...:a1,a2,a3,...] \f$
    29 */
    30 
    31 //////////////////////////////////////////////////////////////////////
    32 /*!
    33  Creation d'une fonction de `nVar' variables et `nPar' parametres:
    34  \f$ F[x(1),x(2),x(3),...x(nVar) : a(1),a(2),a(3),...,a(nPar)] \f$
    35 */
    36 GeneralFunction::GeneralFunction(unsigned int nVar, unsigned int nPar)
    37   : mNVar(nVar), mNPar(nPar)
    38 {
    39  ASSERT( nVar > 0 && nPar > 0 );
    40  deltaParm = new double[nPar];
    41  tmpParm   = new double[nPar];
    42 }
    43 
    44 GeneralFunction::~GeneralFunction()
    45 {
    46  delete[] deltaParm;
    47  delete[] tmpParm;
    48 }
    49 
    50 //////////////////////////////////////////////////////////////////////
    51 /*!
    52   Valeur et Derivees de la fonction (fct virtuelle par defaut).
    53 */
    54 double GeneralFunction::Val_Der(double const xp[], double const* parm
    55                                , double *DgDpar)
    56 {
    57  for(int i=0;i<mNPar;i++) tmpParm[i] = parm[i];
    58  {for(int i=0;i<mNPar;i++) {
    59    double d = deltaParm[i];
    60    if(d==0.) { DgDpar[i] = 0.; continue;}
    61    tmpParm[i] -= d/2.;
    62    double vg = Value(xp,tmpParm);
    63    tmpParm[i] += d;
    64    double vd = Value(xp,tmpParm);
    65    DgDpar[i] = (vd - vg)/d;
    66    tmpParm[i] = parm[i];
    67  }}
    68  return Value(xp, parm);
    69 }
    70 
    71 //////////////////////////////////////////////////////////////////////
    72 /*!
    73   Definition de la variation du parametre numPar
    74   pour calculer la derivee automatiquement.
    75 */
    76 void GeneralFunction::SetDeltaParm(int numPar, double d)
    77 {
    78  ASSERT(numPar >= 0 && numPar < mNPar);
    79  deltaParm[numPar] = d;
    80 }
    81 
    82 
    83 /*!
    84   Idem precedente fonction mais pour tous les parametres
    85 */
    86 void GeneralFunction::SetDeltaParm(double const* dparam)
    87 {
    88  for(int i=0;i<mNPar;i++) deltaParm[i] = dparam[i];
    89 }
    90 
    91 //================================================================
    92 // GeneralFunc
    93 //================================================================
    94 
    95 /*!
    96   \class SOPHYA::GeneralFunc
    97   \ingroup NTools
    98   Classe de fonctions parametrees a plusieurs variables
    99   derivant de ``GeneralFunction''. Permet de definir
    100   une fonction a fiter sans passer par une classe derivee
    101   en utilisant l'ecriture courante du C. La fonction
    102   retournant les derivees par rapport aux parametres du fit
    103   peut etre egalement fournie (optionnel).
    104 */
    105 
    106 /////////////////////////////////////////////////////////////////
    107 /*!
    108   Createur, on passe le nom ``fun'' de la fonction a la mode C.
    109   On peut optionellement egalement passer le nom de la fonction
    110   ``funder'' qui retourne les valeurs des derivees par rapport
    111   aux parametres du fit.
    112   \verbatim
    113     ----------------------
    114     Exemple d'utilisation:
    115     ----------------------
    116     include "generalfit.h"
    117     ...
    118     double   gaussc(double const* x,double const* p);
    119     double d_gaussc(double const* x,double const* p,double* dp);
    120     ...
    121     main {
    122      ...
    123      // Fit SANS calcul automatique des derivees
    124      GeneralFunc      myfunc(2,7,gaussc);
    125      GeneralFit       myfit(&myfunc);
    126      ...
    127      myfit.Fit();
    128      ...
    129      // Fit AVEC calcul automatique des derivees
    130      GeneralFunc      myfunc(2,7,gaussc,d_gaussc);
    131      GeneralFit       myfit(&myfunc);
    132      ...
    133      myfit.Fit();
    134     }
    135     // Definition de la fonction a fitter a la mode C
    136     double gaussc(double const* x,double const* p)
    137     // Fonction: X=(x[0]-p[1])/p[3], Y=(x[1]-p[2])/p[4],
    138     //  f = p[0]*exp{-0.5*[X^2+Y^2-2*p[5]*X*Y]} + p[6]
    139     {
    140      double X = (x[0]-p[1])/p[3];
    141      double Y = (x[1]-p[2])/p[4];
    142      return p[0]*exp(-(X*X+Y*Y-2*p[5]*X*Y)/2)+p[6];
    143     }
    144     // Definition de la fonction des derivees / parametres
    145     // Cette fonction retourne aussi la valeur de la fonction a fitter.
    146     double d_gaussc(double const* x,double const* p,double* dp)
    147     {
    148      dp[0] = derivee de gaussc par rapport au parametre p[0]
    149      ...
    150      dp[6] = derivee de gaussc par rapport au parametre p[6]
    151      return gaussc(x,p);
    152     }
    153   \endverbatim
    154 */
    155 GeneralFunc::GeneralFunc(unsigned int nvar, unsigned int npar
    156              , double (*fun) (double const*, double const*)
    157              , double (*funder) (double const*, double const*, double*) )
    158 : GeneralFunction(nvar,npar), tmpFun(fun), tmpFunDer(funder)
    159 {
    160 }
    161 
    162 GeneralFunc::~GeneralFunc()
    163 {
    164 }
    165 
    166 double GeneralFunc::Value(double const xp[], double const* Par)
    167 {
    168 return tmpFun(xp,Par);
    169 }
    170 
    171 double GeneralFunc::Val_Der(double const xp[],double const* parm, double* DgDpar)
    172 {
    173 if(tmpFunDer) return tmpFunDer(xp,parm,DgDpar);
    174   else        return GeneralFunction::Val_Der(xp,parm,DgDpar);
    175 }
    17619
    17720//================================================================
  • trunk/SophyaLib/NTools/generalfit.h

    r938 r3083  
    66#include "tvector.h"
    77#include "generaldata.h"
     8#include "generalfunc.h"
    89
    910namespace SOPHYA {
    1011
    1112//================================================================
    12 // GeneralFunction
    13 //================================================================
    14 
    15 //! Classe de fonctions parametrees a plusieurs variables
    16 class GeneralFunction {
    17 public:
    18   GeneralFunction(unsigned int nVar, unsigned int nPar);
    19   virtual ~GeneralFunction();
    20 
    21   //! Valeur de la fonction a definir par l'utilisateur (fct virtuelle pure)
    22   virtual double Value(double const xp[], double const* parm)=0;
    23   //! Valeur de la fonction derivee selon les parametres pouvant etre redefinie
    24   virtual double Val_Der(double const xp[], double const* parm
    25                         , double* DgDpar);
    26 
    27   void SetDeltaParm(int numPar, double delta=0.);
    28   void SetDeltaParm(double const* dparam);
    29 
    30   //! Retourne le nombre de variables Xi
    31   inline int     NVar() const {return mNVar;}
    32   //! Retourne le nombre de parametres Ai
    33   inline int     NPar() const {return mNPar;}
    34 
    35 protected:
    36   const int mNVar;  //!< nombre de variables f(x,y,z,...)
    37   const int mNPar;  //!< nombre de parametres
    38 
    39   double *deltaParm;
    40   double *tmpParm;
    41 };
    42 
    43 //================================================================
    44 // GeneralFunc
    45 //================================================================
    46 
    47 //! Classe de fonctions parametrees a plusieurs variables type C
    48 class GeneralFunc : public GeneralFunction {
    49 public:
    50   GeneralFunc(unsigned int nvar, unsigned int npar
    51         ,double (*fun)(double const*,double const*)
    52         ,double (*funder)(double const*, double const*, double*)=NULL);
    53   virtual ~GeneralFunc();
    54 
    55   virtual double Value(double const xp[], double const* Par);
    56   virtual double Val_Der(double const xp[],double const* parm
    57                         , double* DgDpar);
    58 
    59 protected:
    60   double (*tmpFun)   (double const*, double const*);
    61   double (*tmpFunDer)(double const*, double const*, double*);
    62 };
    63 
    64 //================================================================
    6513// GeneralXi2
    6614//================================================================
    67 
    68 class GeneralFitData;
    6915
    7016//! Classe de Xi2 a plusieurs parametres
  • trunk/SophyaLib/NTools/objlist.list

    r3007 r3083  
    1818generaldata.o
    1919generalfit.o
     20generalfunc.o
    2021integ.o
    2122matxop.o
  • trunk/SophyaLib/NTools/smakefile

    r3075 r3083  
    44 
    55clean:
    6          rm -f $(SOPHYAOBJP)cimage.o $(SOPHYAOBJP)cspline.o $(SOPHYAOBJP)datatypes.o $(SOPHYAOBJP)dates.o $(SOPHYAOBJP)difeq.o $(SOPHYAOBJP)dynccd.o $(SOPHYAOBJP)fct1dfit.o $(SOPHYAOBJP)fct2dfit.o $(SOPHYAOBJP)fftmserver.o $(SOPHYAOBJP)fftpserver.o $(SOPHYAOBJP)fftservintf.o $(SOPHYAOBJP)FSAppIrrSmpl.o $(SOPHYAOBJP)functab.o $(SOPHYAOBJP)generaldata.o $(SOPHYAOBJP)generalfit.o $(SOPHYAOBJP)imageop.o $(SOPHYAOBJP)integ.o $(SOPHYAOBJP)median.o $(SOPHYAOBJP)ntoolsinit.o $(SOPHYAOBJP)objfitter.o $(SOPHYAOBJP)perandom.o $(SOPHYAOBJP)poly.o $(SOPHYAOBJP)rk4cdifeq.o $(SOPHYAOBJP)simplesort.o $(SOPHYAOBJP)simplex.o $(SOPHYAOBJP)tabmath.o $(SOPHYAOBJP)toeplitzMatrix.o $(SOPHYAOBJP)datime.o $(SOPHYAOBJP)fftmayer_r4.o $(SOPHYAOBJP)fftmayer_r8.o $(SOPHYAOBJP)fftpackc.o $(SOPHYAOBJP)matxop.o $(SOPHYAOBJP)nbmath.o $(SOPHYAOBJP)nbtri.o
     6         rm -f $(SOPHYAOBJP)cimage.o $(SOPHYAOBJP)cspline.o $(SOPHYAOBJP)datatypes.o $(SOPHYAOBJP)dates.o $(SOPHYAOBJP)difeq.o $(SOPHYAOBJP)dynccd.o $(SOPHYAOBJP)fct1dfit.o $(SOPHYAOBJP)fct2dfit.o $(SOPHYAOBJP)fftmserver.o $(SOPHYAOBJP)fftpserver.o $(SOPHYAOBJP)fftservintf.o $(SOPHYAOBJP)FSAppIrrSmpl.o $(SOPHYAOBJP)functab.o $(SOPHYAOBJP)generaldata.o $(SOPHYAOBJP)generalfit.o $(SOPHYAOBJP)generalfunc.o $(SOPHYAOBJP)imageop.o $(SOPHYAOBJP)integ.o $(SOPHYAOBJP)median.o $(SOPHYAOBJP)ntoolsinit.o $(SOPHYAOBJP)objfitter.o $(SOPHYAOBJP)perandom.o $(SOPHYAOBJP)poly.o $(SOPHYAOBJP)rk4cdifeq.o $(SOPHYAOBJP)simplesort.o $(SOPHYAOBJP)simplex.o $(SOPHYAOBJP)tabmath.o $(SOPHYAOBJP)toeplitzMatrix.o $(SOPHYAOBJP)datime.o $(SOPHYAOBJP)fftmayer_r4.o $(SOPHYAOBJP)fftmayer_r8.o $(SOPHYAOBJP)fftpackc.o $(SOPHYAOBJP)matxop.o $(SOPHYAOBJP)nbmath.o $(SOPHYAOBJP)nbtri.o
    77        rm -f $(SOPHYALIBP)libNTools.a
    88 
    9 $(SOPHYALIBP)libNTools.a : $(SOPHYAOBJP)cimage.o $(SOPHYAOBJP)cspline.o $(SOPHYAOBJP)datatypes.o $(SOPHYAOBJP)dates.o $(SOPHYAOBJP)datime.o $(SOPHYAOBJP)difeq.o $(SOPHYAOBJP)dynccd.o $(SOPHYAOBJP)fct1dfit.o $(SOPHYAOBJP)fct2dfit.o $(SOPHYAOBJP)fftmayer_r4.o $(SOPHYAOBJP)fftmayer_r8.o $(SOPHYAOBJP)fftmserver.o $(SOPHYAOBJP)fftpackc.o $(SOPHYAOBJP)fftpserver.o $(SOPHYAOBJP)fftservintf.o $(SOPHYAOBJP)FSAppIrrSmpl.o $(SOPHYAOBJP)functab.o $(SOPHYAOBJP)generaldata.o $(SOPHYAOBJP)generalfit.o $(SOPHYAOBJP)integ.o $(SOPHYAOBJP)matxop.o $(SOPHYAOBJP)median.o $(SOPHYAOBJP)nbmath.o $(SOPHYAOBJP)nbtri.o $(SOPHYAOBJP)ntoolsinit.o $(SOPHYAOBJP)objfitter.o $(SOPHYAOBJP)perandom.o $(SOPHYAOBJP)poly.o $(SOPHYAOBJP)rk4cdifeq.o $(SOPHYAOBJP)simplesort.o $(SOPHYAOBJP)simplex.o $(SOPHYAOBJP)tabmath.o $(SOPHYAOBJP)toeplitzMatrix.o
     9$(SOPHYALIBP)libNTools.a : $(SOPHYAOBJP)cimage.o $(SOPHYAOBJP)cspline.o $(SOPHYAOBJP)datatypes.o $(SOPHYAOBJP)dates.o $(SOPHYAOBJP)datime.o $(SOPHYAOBJP)difeq.o $(SOPHYAOBJP)dynccd.o $(SOPHYAOBJP)fct1dfit.o $(SOPHYAOBJP)fct2dfit.o $(SOPHYAOBJP)fftmayer_r4.o $(SOPHYAOBJP)fftmayer_r8.o $(SOPHYAOBJP)fftmserver.o $(SOPHYAOBJP)fftpackc.o $(SOPHYAOBJP)fftpserver.o $(SOPHYAOBJP)fftservintf.o $(SOPHYAOBJP)FSAppIrrSmpl.o $(SOPHYAOBJP)functab.o $(SOPHYAOBJP)generaldata.o $(SOPHYAOBJP)generalfit.o $(SOPHYAOBJP)generalfunc.o $(SOPHYAOBJP)integ.o $(SOPHYAOBJP)matxop.o $(SOPHYAOBJP)median.o $(SOPHYAOBJP)nbmath.o $(SOPHYAOBJP)nbtri.o $(SOPHYAOBJP)ntoolsinit.o $(SOPHYAOBJP)objfitter.o $(SOPHYAOBJP)perandom.o $(SOPHYAOBJP)poly.o $(SOPHYAOBJP)rk4cdifeq.o $(SOPHYAOBJP)simplesort.o $(SOPHYAOBJP)simplex.o $(SOPHYAOBJP)tabmath.o $(SOPHYAOBJP)toeplitzMatrix.o
    1010        $(AR) $(ARFLAGS) $@ $?
    1111        touch $(SOPHYAINCP)/SophyaConfInfo/libsophya.objlist
     
    141141  peida.h $(SOPHYAINCP)utils.h \
    142142  $(SOPHYAINCP)perrors.h fmath.h \
    143   nbconst.h tabmath.h
     143  generalfunc.h nbconst.h tabmath.h
    144144        $(CXXCOMPILE) $(CXXTEMPFLG) -o $@  fct1dfit.cc
    145145 
     
    171171  peida.h $(SOPHYAINCP)utils.h \
    172172  $(SOPHYAINCP)perrors.h fmath.h \
    173   nbconst.h tabmath.h simps2d.h
     173  generalfunc.h nbconst.h tabmath.h simps2d.h
    174174        $(CXXCOMPILE) $(CXXTEMPFLG) -o $@  fct2dfit.cc
    175175 
     
    334334  $(SOPHYAINCP)ntupintf.h poly.h \
    335335  peida.h $(SOPHYAINCP)utils.h \
    336   $(SOPHYAINCP)perrors.h fmath.h
     336  $(SOPHYAINCP)perrors.h fmath.h \
     337  generalfunc.h
    337338        $(CXXCOMPILE) $(CXXTEMPFLG) -o $@  generaldata.cc
    338339 
     
    364365  peida.h $(SOPHYAINCP)utils.h \
    365366  $(SOPHYAINCP)perrors.h fmath.h \
     367  generalfunc.h \
    366368  $(SOPHYAINCP)sopemtx.h
    367369        $(CXXCOMPILE) $(CXXTEMPFLG) -o $@  generalfit.cc
    368370 
     371$(SOPHYAOBJP)generalfunc.o: generalfunc.cc generalfunc.h \
     372  $(SOPHYAINCP)sopnamsp.h \
     373  $(SOPHYAINCP)machdefs.h \
     374  $(SOPHYAINCP)pexceptions.h
     375        $(CXXCOMPILE) $(CXXTEMPFLG) -o $@  generalfunc.cc
     376 
    369377$(SOPHYAOBJP)integ.o: integ.cc \
    370378  $(SOPHYAINCP)sopnamsp.h integ.h \
     
    393401  $(SOPHYAINCP)ntupintf.h poly.h \
    394402  peida.h $(SOPHYAINCP)utils.h \
    395   $(SOPHYAINCP)perrors.h fmath.h
     403  $(SOPHYAINCP)perrors.h fmath.h \
     404  generalfunc.h
    396405        $(CXXCOMPILE) $(CXXTEMPFLG) -o $@  integ.cc
    397406 
     
    465474  generalfit.h generaldata.h \
    466475  $(SOPHYAINCP)ntupintf.h poly.h \
    467   peida.h
     476  peida.h generalfunc.h
    468477        $(CXXCOMPILE) $(CXXTEMPFLG) -o $@  objfitter.cc
    469478 
     
    589598  peida.h $(SOPHYAINCP)utils.h \
    590599  $(SOPHYAINCP)perrors.h fmath.h \
     600  generalfunc.h \
    591601  $(SOPHYAINCP)ntuple.h \
    592602  $(SOPHYAINCP)timing.h
Note: See TracChangeset for help on using the changeset viewer.