testFunctor.cxx File Reference

#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


Define Documentation

#define FUNC   x[0]+x[1]

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().

#define FUNC1D   x+x;

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.


Function Documentation

double freeFunction ( const double x  ) 

Definition at line 47 of file testFunctor.cxx.

References FUNC.

Referenced by testMore(), and testMultiDim().

double freeFunction1D ( double  x  ) 

Definition at line 63 of file testFunctor.cxx.

References FUNC1D.

Referenced by testMore(), and testOneDim().

double freeParamFunc1D ( double  x,
double  
)

Definition at line 59 of file testFunctor.cxx.

References FUNC1D.

double freeRootFunc1D ( const double xx,
const double  
)

Definition at line 55 of file testFunctor.cxx.

References FUNC1D, and x.

Referenced by testMore().

double freeRootFunc2D ( const double x,
const double  
)

Definition at line 52 of file testFunctor.cxx.

References FUNC.

Referenced by testMore().

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().

template<class Func>
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  ) 

Definition at line 198 of file testFunctor.cxx.

References TestTime().

template<class PFunc>
void TestTimePF ( PFunc &  f  ) 

Definition at line 176 of file testFunctor.cxx.

References i, name, NLOOP, Ntimes, p, s, w, x, and y.

Referenced by testMore().

void TestTimeTF1 ( TF1 f  ) 

Definition at line 203 of file testFunctor.cxx.

References i, NLOOP, Ntimes, s, w, x, and y.

Referenced by testMore().


Variable Documentation

const int Ntimes = NTIMES

Definition at line 151 of file testFunctor.cxx.

Referenced by TestTime(), TestTimePF(), and TestTimeTF1().


Generated on Tue Jul 5 16:07:15 2011 for ROOT_528-00b_version by  doxygen 1.5.1