-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathvegas.h
45 lines (32 loc) · 807 Bytes
/
vegas.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#ifndef VEGAS_H
#define VEGAS_H
void gVegas(float& avgi, float& sd, float& chi2a);
void myVegas(float& avgi, float& sd, float& chi2a);
#ifndef __MAIN_LOGIC
#define EXTERN extern
#else
#define EXTERN
#endif
const int ndim_max = 20;
const float alph = 1.5;
EXTERN float dx[ndim_max];
EXTERN float randm[ndim_max];
const int nd_max = 50;
EXTERN double xin[nd_max];
EXTERN float xjac;
EXTERN float xl[ndim_max],xu[ndim_max];
EXTERN double acc;
EXTERN int ndim, ncall, itmx, nprn;
EXTERN float xi[ndim_max][nd_max];
EXTERN double si, si2, swgt, schi;
EXTERN int ndo, it;
//EXTERN double alph;
EXTERN int mds;
EXTERN double calls, ti, tsi;
//EXTERN float ti, tsi;
EXTERN int npg, ng, nd;
EXTERN float dxg, xnd;
EXTERN unsigned nCubes;
//adding stuff, don't know if it's right...
#undef EXTERN
#endif