Changeset 3098 in Sophya for trunk/SophyaLib/NTools/integ.h
- Timestamp:
- Nov 2, 2006, 3:32:37 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/NTools/integ.h
r2423 r3098 18 18 class Integrator { 19 19 public: 20 //typedef double(*FUNC)(double); 21 typedef ClassFunc *FUNC; 22 typedef double (*fun)(double); 20 typedef double(*FUNC)(double); 23 21 24 22 Integrator(); 23 Integrator(ClassFunc const &, double xmin, double xmax); 24 Integrator(ClassFunc const &); 25 25 26 Integrator(FUNC, double xmin, double xmax); 26 27 Integrator(FUNC); 27 28 Integrator(fun, double xmin, double xmax);29 Integrator(fun);30 28 31 29 Integrator(GeneralFunction*, double* par, double xmin, double xmax); … … 41 39 virtual Integrator& ReqPrec(double); // NOT YET ! 42 40 virtual Integrator& Limits(double xmin, double xmax); 43 virtual Integrator& Func(FUNC); 44 virtual Integrator& Func(GeneralFunction*, double* par); 41 virtual Integrator& SetFunc(ClassFunc const &); 42 virtual Integrator& SetFunc(FUNC); 43 virtual Integrator& SetFunc(GeneralFunction*, double* par); 45 44 46 45 virtual inline int GetNStep(void) {return mNStep;} … … 49 48 protected: 50 49 FUNC mFunc; 50 ClassFunc const* mClFun; 51 51 GeneralFunction* mGFF; 52 52 double* mGFFParm; … … 68 68 public: 69 69 TrpzInteg(); 70 TrpzInteg(ClassFunc const &, double xmin, double xmax); 71 TrpzInteg(ClassFunc const &); 70 72 TrpzInteg(FUNC, double xmin, double xmax); 71 73 TrpzInteg(FUNC); 72 TrpzInteg(fun, double xmin, double xmax);73 TrpzInteg(fun);74 74 TrpzInteg(GeneralFunction*, double* par, double xmin, double xmax); 75 75 TrpzInteg(GeneralFunction*, double* par); … … 83 83 public: 84 84 GLInteg(); 85 GLInteg(ClassFunc const &, double xmin, double xmax); 86 GLInteg(ClassFunc const &); 85 87 GLInteg(FUNC, double xmin, double xmax); 86 88 GLInteg(FUNC); 87 GLInteg(fun, double xmin, double xmax);88 GLInteg(fun);89 89 GLInteg(GeneralFunction*, double* par, double xmin, double xmax); 90 90 GLInteg(GeneralFunction*, double* par);
Note:
See TracChangeset
for help on using the changeset viewer.