Logo ROOT   6.08/07
Reference Guide
Macros | Functions | Variables
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>
Include dependency graph for testFunctor.cxx:

Macros

#define FUNC   x[0]+x[1]
 
#define FUNC1D   x+x;
 
#define NLOOP   100
 
#define NTIMES   500000
 

Functions

double freeFunction (const double *x)
 
double freeFunction1D (double x)
 
double freeParamFunc1D (double x, double *)
 
double freeRootFunc1D (const double *xx, const double *)
 
double freeRootFunc2D (const double *x, const double *)
 
int main ()
 
void testMore ()
 
void testMultiDim ()
 
void testOneDim ()
 
template<class Func >
void TestTime (const Func &f)
 
void TestTimeGF (const ROOT::Math::IGenFunction &f)
 
template<class PFunc >
void TestTimePF (PFunc &f)
 
void TestTimeTF1 (TF1 &f)
 

Variables

const int Ntimes = NTIMES
 

Macro Definition Documentation

◆ FUNC

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

Definition at line 36 of file testFunctor.cxx.

◆ FUNC1D

#define FUNC1D   x+x;

Definition at line 35 of file testFunctor.cxx.

◆ NLOOP

#define NLOOP   100

Definition at line 33 of file testFunctor.cxx.

◆ NTIMES

#define NTIMES   500000

Definition at line 34 of file testFunctor.cxx.

Function Documentation

◆ freeFunction()

double freeFunction ( const double *  x)

Definition at line 47 of file testFunctor.cxx.

◆ freeFunction1D()

double freeFunction1D ( double  x)

Definition at line 63 of file testFunctor.cxx.

◆ freeParamFunc1D()

double freeParamFunc1D ( double  x,
double *   
)

Definition at line 59 of file testFunctor.cxx.

◆ freeRootFunc1D()

double freeRootFunc1D ( const double *  xx,
const double *   
)

Definition at line 55 of file testFunctor.cxx.

◆ freeRootFunc2D()

double freeRootFunc2D ( const double *  x,
const double *   
)

Definition at line 52 of file testFunctor.cxx.

◆ main()

int main ( )

Definition at line 453 of file testFunctor.cxx.

◆ testMore()

void testMore ( )

Definition at line 331 of file testFunctor.cxx.

◆ testMultiDim()

void testMultiDim ( )

Definition at line 252 of file testFunctor.cxx.

◆ testOneDim()

void testOneDim ( )

Definition at line 290 of file testFunctor.cxx.

◆ TestTime()

template<class Func >
void TestTime ( const Func f)

Definition at line 154 of file testFunctor.cxx.

◆ TestTimeGF()

void TestTimeGF ( const ROOT::Math::IGenFunction f)

Definition at line 198 of file testFunctor.cxx.

◆ TestTimePF()

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

Definition at line 176 of file testFunctor.cxx.

◆ TestTimeTF1()

void TestTimeTF1 ( TF1 f)

Definition at line 203 of file testFunctor.cxx.

Variable Documentation

◆ Ntimes

const int Ntimes = NTIMES

Definition at line 151 of file testFunctor.cxx.