Changeset 3083 in Sophya
- Timestamp:
- Sep 19, 2006, 3:44:03 PM (19 years ago)
- Location:
- trunk/SophyaLib/NTools
- Files:
-
- 2 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/NTools/Makefile
r3075 r3083 4 4 5 5 clean: 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.o6 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 7 7 rm -f $(SOPHYALIBP)libNTools.a 8 8 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.o9 $(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 10 10 $(AR) $(ARFLAGS) $@ $? 11 11 touch $(SOPHYAINCP)/SophyaConfInfo/libsophya.objlist … … 141 141 peida.h $(SOPHYAINCP)utils.h \ 142 142 $(SOPHYAINCP)perrors.h fmath.h \ 143 nbconst.h tabmath.h143 generalfunc.h nbconst.h tabmath.h 144 144 $(CXXCOMPILE) $(CXXTEMPFLG) -o $@ fct1dfit.cc 145 145 … … 171 171 peida.h $(SOPHYAINCP)utils.h \ 172 172 $(SOPHYAINCP)perrors.h fmath.h \ 173 nbconst.h tabmath.h simps2d.h173 generalfunc.h nbconst.h tabmath.h simps2d.h 174 174 $(CXXCOMPILE) $(CXXTEMPFLG) -o $@ fct2dfit.cc 175 175 … … 334 334 $(SOPHYAINCP)ntupintf.h poly.h \ 335 335 peida.h $(SOPHYAINCP)utils.h \ 336 $(SOPHYAINCP)perrors.h fmath.h 336 $(SOPHYAINCP)perrors.h fmath.h \ 337 generalfunc.h 337 338 $(CXXCOMPILE) $(CXXTEMPFLG) -o $@ generaldata.cc 338 339 … … 364 365 peida.h $(SOPHYAINCP)utils.h \ 365 366 $(SOPHYAINCP)perrors.h fmath.h \ 367 generalfunc.h \ 366 368 $(SOPHYAINCP)sopemtx.h 367 369 $(CXXCOMPILE) $(CXXTEMPFLG) -o $@ generalfit.cc 368 370 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 369 377 $(SOPHYAOBJP)integ.o: integ.cc \ 370 378 $(SOPHYAINCP)sopnamsp.h integ.h \ … … 393 401 $(SOPHYAINCP)ntupintf.h poly.h \ 394 402 peida.h $(SOPHYAINCP)utils.h \ 395 $(SOPHYAINCP)perrors.h fmath.h 403 $(SOPHYAINCP)perrors.h fmath.h \ 404 generalfunc.h 396 405 $(CXXCOMPILE) $(CXXTEMPFLG) -o $@ integ.cc 397 406 … … 465 474 generalfit.h generaldata.h \ 466 475 $(SOPHYAINCP)ntupintf.h poly.h \ 467 peida.h 476 peida.h generalfunc.h 468 477 $(CXXCOMPILE) $(CXXTEMPFLG) -o $@ objfitter.cc 469 478 … … 589 598 peida.h $(SOPHYAINCP)utils.h \ 590 599 $(SOPHYAINCP)perrors.h fmath.h \ 600 generalfunc.h \ 591 601 $(SOPHYAINCP)ntuple.h \ 592 602 $(SOPHYAINCP)timing.h -
trunk/SophyaLib/NTools/generalfit.cc
r2615 r3083 6 6 #include <math.h> 7 7 #ifdef __MWERKS__ 8 8 #include "mwerksmath.h" // Portage mac D. Y. 9 9 #include "unixmac.h" 10 10 #endif … … 17 17 18 18 #define EPS_FIT_MIN 1.e-8 19 20 //================================================================21 // GeneralFunction22 //================================================================23 24 /*!25 \class SOPHYA::GeneralFunction26 \ingroup NTools27 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* parm55 , 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 numPar74 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 parametres85 */86 void GeneralFunction::SetDeltaParm(double const* dparam)87 {88 for(int i=0;i<mNPar;i++) deltaParm[i] = dparam[i];89 }90 91 //================================================================92 // GeneralFunc93 //================================================================94 95 /*!96 \class SOPHYA::GeneralFunc97 \ingroup NTools98 Classe de fonctions parametrees a plusieurs variables99 derivant de ``GeneralFunction''. Permet de definir100 une fonction a fiter sans passer par une classe derivee101 en utilisant l'ecriture courante du C. La fonction102 retournant les derivees par rapport aux parametres du fit103 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 fonction110 ``funder'' qui retourne les valeurs des derivees par rapport111 aux parametres du fit.112 \verbatim113 ----------------------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 derivees124 GeneralFunc myfunc(2,7,gaussc);125 GeneralFit myfit(&myfunc);126 ...127 myfit.Fit();128 ...129 // Fit AVEC calcul automatique des derivees130 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 C136 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 / parametres145 // 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 \endverbatim154 */155 GeneralFunc::GeneralFunc(unsigned int nvar, unsigned int npar156 , 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 }176 19 177 20 //================================================================ -
trunk/SophyaLib/NTools/generalfit.h
r938 r3083 6 6 #include "tvector.h" 7 7 #include "generaldata.h" 8 #include "generalfunc.h" 8 9 9 10 namespace SOPHYA { 10 11 11 12 //================================================================ 12 // GeneralFunction13 //================================================================14 15 //! Classe de fonctions parametrees a plusieurs variables16 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 redefinie24 virtual double Val_Der(double const xp[], double const* parm25 , double* DgDpar);26 27 void SetDeltaParm(int numPar, double delta=0.);28 void SetDeltaParm(double const* dparam);29 30 //! Retourne le nombre de variables Xi31 inline int NVar() const {return mNVar;}32 //! Retourne le nombre de parametres Ai33 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 parametres38 39 double *deltaParm;40 double *tmpParm;41 };42 43 //================================================================44 // GeneralFunc45 //================================================================46 47 //! Classe de fonctions parametrees a plusieurs variables type C48 class GeneralFunc : public GeneralFunction {49 public:50 GeneralFunc(unsigned int nvar, unsigned int npar51 ,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* parm57 , double* DgDpar);58 59 protected:60 double (*tmpFun) (double const*, double const*);61 double (*tmpFunDer)(double const*, double const*, double*);62 };63 64 //================================================================65 13 // GeneralXi2 66 14 //================================================================ 67 68 class GeneralFitData;69 15 70 16 //! Classe de Xi2 a plusieurs parametres -
trunk/SophyaLib/NTools/objlist.list
r3007 r3083 18 18 generaldata.o 19 19 generalfit.o 20 generalfunc.o 20 21 integ.o 21 22 matxop.o -
trunk/SophyaLib/NTools/smakefile
r3075 r3083 4 4 5 5 clean: 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.o6 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 7 7 rm -f $(SOPHYALIBP)libNTools.a 8 8 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.o9 $(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 10 10 $(AR) $(ARFLAGS) $@ $? 11 11 touch $(SOPHYAINCP)/SophyaConfInfo/libsophya.objlist … … 141 141 peida.h $(SOPHYAINCP)utils.h \ 142 142 $(SOPHYAINCP)perrors.h fmath.h \ 143 nbconst.h tabmath.h143 generalfunc.h nbconst.h tabmath.h 144 144 $(CXXCOMPILE) $(CXXTEMPFLG) -o $@ fct1dfit.cc 145 145 … … 171 171 peida.h $(SOPHYAINCP)utils.h \ 172 172 $(SOPHYAINCP)perrors.h fmath.h \ 173 nbconst.h tabmath.h simps2d.h173 generalfunc.h nbconst.h tabmath.h simps2d.h 174 174 $(CXXCOMPILE) $(CXXTEMPFLG) -o $@ fct2dfit.cc 175 175 … … 334 334 $(SOPHYAINCP)ntupintf.h poly.h \ 335 335 peida.h $(SOPHYAINCP)utils.h \ 336 $(SOPHYAINCP)perrors.h fmath.h 336 $(SOPHYAINCP)perrors.h fmath.h \ 337 generalfunc.h 337 338 $(CXXCOMPILE) $(CXXTEMPFLG) -o $@ generaldata.cc 338 339 … … 364 365 peida.h $(SOPHYAINCP)utils.h \ 365 366 $(SOPHYAINCP)perrors.h fmath.h \ 367 generalfunc.h \ 366 368 $(SOPHYAINCP)sopemtx.h 367 369 $(CXXCOMPILE) $(CXXTEMPFLG) -o $@ generalfit.cc 368 370 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 369 377 $(SOPHYAOBJP)integ.o: integ.cc \ 370 378 $(SOPHYAINCP)sopnamsp.h integ.h \ … … 393 401 $(SOPHYAINCP)ntupintf.h poly.h \ 394 402 peida.h $(SOPHYAINCP)utils.h \ 395 $(SOPHYAINCP)perrors.h fmath.h 403 $(SOPHYAINCP)perrors.h fmath.h \ 404 generalfunc.h 396 405 $(CXXCOMPILE) $(CXXTEMPFLG) -o $@ integ.cc 397 406 … … 465 474 generalfit.h generaldata.h \ 466 475 $(SOPHYAINCP)ntupintf.h poly.h \ 467 peida.h 476 peida.h generalfunc.h 468 477 $(CXXCOMPILE) $(CXXTEMPFLG) -o $@ objfitter.cc 469 478 … … 589 598 peida.h $(SOPHYAINCP)utils.h \ 590 599 $(SOPHYAINCP)perrors.h fmath.h \ 600 generalfunc.h \ 591 601 $(SOPHYAINCP)ntuple.h \ 592 602 $(SOPHYAINCP)timing.h
Note:
See TracChangeset
for help on using the changeset viewer.