Does anybody know of a C++ library that does complex integration that I can link against?
I want to fit a TH1D histogram using some fancy QCD theory which has a complex integral involved. I want to use minuit to fit the parameter of the theory to the histogram. Each time the parameter is changed the integral has to be redone.
My professor has given me his old fortran code which uses the wgauss method from cernlib, I am looking for a C++ analog. Does anybody know of one?
I would hate to have to convert my root histograms into paw form and then do this all in fortran.
and you can use the integration algorithms for real number,
like those implemented for TF1::Integral or the class ROOT::Math::Integrator based on adaptive numerical integration from GSL,
The page 4 of netlib.org/f2c/f2c.pdf says,[quote]A complex or double complex function is equivalent to a C routine with an
additional initial argument that points to the place where the return value is to be stored. Thus,[/quote]
complex function f( . . . )
void f_(temp, . . .)
complex *temp;. . .
This probably is not true for the Microsoft compiler