ROOT  6.06/09
Reference Guide
Classes | Typedefs | Functions | Variables
testGSLRootFinder.cxx File Reference
#include "Math/Polynomial.h"
#include "Math/Functor.h"
#include "Math/RootFinder.h"
#include "Math/RootFinderAlgorithms.h"
#include <iostream>
+ Include dependency graph for testGSLRootFinder.cxx:

Go to the source code of this file.

Classes

class  TStopwatch
 Stopwatch class. More...
 

Typedefs

typedef double(* FP) (double, void *)
 

Functions

double myfunc (double x)
 
double myfunc_gsl (double x, void *)
 
double myfunc_deriv (double x)
 
double myfunc_deriv_gsl (double x, void *)
 
void myfunc_fdf (double x, void *, double *y, double *dy)
 
template<class RF >
int findRoot (RF *r)
 
template<class RF >
int printStats (RF *r, int returnCode, TStopwatch &timer)
 
int testGSLRootFinder ()
 
int main ()
 

Variables

const int iterTest = 10000
 
int myfuncCalls = 0
 
const double absTol = 1E-3
 

Typedef Documentation

typedef double( * FP) (double, void *)

Definition at line 21 of file testGSLRootFinder.cxx.

Function Documentation

template<class RF >
int findRoot ( RF *  r)

Definition at line 51 of file testGSLRootFinder.cxx.

Referenced by testGSLRootFinder().

int main ( )

Definition at line 175 of file testGSLRootFinder.cxx.

double myfunc ( double  x)

Definition at line 29 of file testGSLRootFinder.cxx.

Referenced by myfunc_gsl(), and testGSLRootFinder().

double myfunc_deriv ( double  x)

Definition at line 38 of file testGSLRootFinder.cxx.

Referenced by myfunc_deriv_gsl(), and testGSLRootFinder().

double myfunc_deriv_gsl ( double  x,
void  
)

Definition at line 41 of file testGSLRootFinder.cxx.

Referenced by testGSLRootFinder().

void myfunc_fdf ( double  x,
void ,
double y,
double dy 
)

Definition at line 45 of file testGSLRootFinder.cxx.

Referenced by testGSLRootFinder().

double myfunc_gsl ( double  x,
void  
)

Definition at line 34 of file testGSLRootFinder.cxx.

Referenced by testGSLRootFinder().

template<class RF >
int printStats ( RF *  r,
int  returnCode,
TStopwatch timer 
)

Definition at line 60 of file testGSLRootFinder.cxx.

Referenced by testGSLRootFinder().

int testGSLRootFinder ( )

Definition at line 79 of file testGSLRootFinder.cxx.

Referenced by main().

Variable Documentation

const double absTol = 1E-3
const int iterTest = 10000

Definition at line 23 of file testGSLRootFinder.cxx.

Referenced by printStats(), and testGSLRootFinder().

int myfuncCalls = 0

Definition at line 24 of file testGSLRootFinder.cxx.

Referenced by myfunc(), printStats(), and testGSLRootFinder().