elegent is hosted by Hepforge, IPPP Durham
Elegent

Group of utility functions for numerical integration. More...

Classes

struct  Elegent::RealIntegPar
 Set of parameters for integration of a real function. More...
 
struct  Elegent::OneCompIntegPar
 Set of parameters for integration of a part of a complex function. More...
 

Typedefs

typedef double(* Elegent::RealFunction) (double x, double *par, const void *obj)
 Represents a real function of real variable. More...
 
typedef TComplex(* Elegent::ComplexFunction) (double x, double *par, const void *obj)
 Represents a complex function of real variable.
 

Enumerations

enum  Elegent::OneCompIntegPar::Part { pUndefined, pReal, pImaginary }
 part to integrate
 

Functions

double Elegent::RealIntegrate (RealFunction fcn, double *par, const void *object, double from, double to, double abs_err, double rel_err, unsigned long work_space_size, gsl_integration_workspace *work_space, const char *errorLabel="")
 Integration of a real function of a real variable. More...
 
TComplex Elegent::ComplexIntegrate (ComplexFunction fcn, double *par, const void *object, double from, double to, double abs_err, double rel_err, unsigned long work_space_size, gsl_integration_workspace *work_space, const char *errorLabel="")
 Integration of a complex function of a real variable.
 
double Elegent::RealIntegFcn (double x, void *vpar)
 Evaluates a given real function with a given parameter set.
 
double Elegent::OneCompIntegFcn (double x, void *par)
 Evaluates a given part of a give complex function with a given parameter set.
 

Variables

bool Elegent::abortOnIntegrationError = false
 Abort when integration error occurs? More...
 

Detailed Description

Group of utility functions for numerical integration.

Typedef Documentation

typedef double(* Elegent::RealFunction) (double x, double *par, const void *obj)

Represents a real function of real variable.

Parameters
xis the integration variable
paris intended for additional numerical parameters
objis inteded for an object pointer

Function Documentation

double Elegent::RealIntegrate ( RealFunction  fcn,
double *  par,
const void *  object,
double  from,
double  to,
double  abs_err,
double  rel_err,
unsigned long  work_space_size,
gsl_integration_workspace *  work_space,
const char *  errorLabel = "" 
)

Integration of a real function of a real variable.

Parameters
fcnfunction to integrate
paroptional numerical parameters
objectoptional object parameter
fromlower integration bound
toupper integration bound
abs_errrequested absolute error on the result
rel_errrequested relative error on the result
work_space_sizesize to GSL integration workspace
work_spacepointer to GSL integration workspace
errorLabelcaption of (possible) error messages

Variable Documentation

bool Elegent::abortOnIntegrationError = false

Abort when integration error occurs?

false by default