#include <iostream>
#include "Math/WrappedFunction.h"
#include "Math/WrappedParamFunction.h"
#include "TStopwatch.h"
#include <cmath>
#include "TRandom2.h"
#include "TF1.h"
#include "TF2.h"
#include "Math/WrappedTF1.h"
#include "Math/WrappedMultiTF1.h"
#include "Math/IFunctionfwd.h"
#include "Math/IFunction.h"
#include "Math/Functor.h"
#include "Math/ParamFunctor.h"
#include <functional>
#include <vector>
Go to the source code of this file.
Classes | |
class | MyFunction |
struct | MyDerivFunction |
class | MyFunction1D |
class | DerivFunction |
class | DerivFunction1D |
struct | F1D |
Defines | |
#define | NLOOP 100 |
#define | NTIMES 500000 |
#define | FUNC1D x+x; |
#define | FUNC x[0]+x[1] |
Functions | |
double | freeFunction (const double *x) |
double | freeRootFunc2D (const double *x, const double *) |
double | freeRootFunc1D (const double *xx, const double *) |
double | freeParamFunc1D (double x, double *) |
double | freeFunction1D (double x) |
template<class Func> | |
void | TestTime (const Func &f) |
template<class PFunc> | |
void | TestTimePF (PFunc &f) |
void | TestTimeGF (const ROOT::Math::IGenFunction &f) |
void | TestTimeTF1 (TF1 &f) |
void | testMultiDim () |
void | testOneDim () |
void | testMore () |
int | main () |
Variables | |
const int | Ntimes = NTIMES |
Definition at line 36 of file testFunctor.cxx.
Referenced by MyFunction::Derivative(), DerivFunction::DoEval(), MyFunction::Eval(), freeFunction(), freeRootFunc2D(), Reflex::FuncToVoidPtr(), MyFunction::operator()(), MyDerivFunction::operator()(), and Reflex::VoidPtrToFunc().
Definition at line 35 of file testFunctor.cxx.
Referenced by MyFunction1D::Derivative(), DerivFunction1D::DoEval(), F1D::Eval(), MyFunction1D::Eval(), freeFunction1D(), freeParamFunc1D(), freeRootFunc1D(), and MyFunction1D::operator()().
#define NLOOP 100 |
Definition at line 33 of file testFunctor.cxx.
#define NTIMES 500000 |
Definition at line 34 of file testFunctor.cxx.
Definition at line 47 of file testFunctor.cxx.
References FUNC.
Referenced by testMore(), and testMultiDim().
Definition at line 63 of file testFunctor.cxx.
References FUNC1D.
Referenced by testMore(), and testOneDim().
int main | ( | void | ) |
Definition at line 453 of file testFunctor.cxx.
References testMore(), testMultiDim(), and testOneDim().
void testMore | ( | ) |
Definition at line 331 of file testFunctor.cxx.
References c, double, F1D::Eval(), freeFunction(), freeFunction1D(), freeRootFunc1D(), freeRootFunc2D(), ROOT::Math::WrappedMultiTF1::NDim(), TestTime(), TestTimePF(), TestTimeTF1(), and x.
Referenced by main(), and PT_AdminFunc().
void testMultiDim | ( | ) |
Definition at line 252 of file testFunctor.cxx.
References MyFunction::Derivative(), MyFunction::Eval(), f2, freeFunction(), and TestTime().
Referenced by main().
void testOneDim | ( | ) |
Definition at line 290 of file testFunctor.cxx.
References MyFunction1D::Derivative(), MyFunction1D::Eval(), f2, freeFunction1D(), and TestTime().
Referenced by main().
void TestTime | ( | const Func & | f | ) |
Definition at line 154 of file testFunctor.cxx.
References i, name, NLOOP, Ntimes, s, w, x, and y.
Referenced by testMore(), testMultiDim(), testOneDim(), and TestTimeGF().
void TestTimeGF | ( | const ROOT::Math::IGenFunction & | f | ) |
void TestTimePF | ( | PFunc & | f | ) |
void TestTimeTF1 | ( | TF1 & | f | ) |
Definition at line 203 of file testFunctor.cxx.
References i, NLOOP, Ntimes, s, w, x, and y.
Referenced by testMore().
const int Ntimes = NTIMES |
Definition at line 151 of file testFunctor.cxx.
Referenced by TestTime(), TestTimePF(), and TestTimeTF1().