UltraNest
common.h
1 #ifndef ULTRANEST_COMMON
2 #define ULTRANEST_COMMON
3 
5 #define LikelihoodFunc void (*Like) (double * Cube, int * ndim, int * nparams, double * lnew, void * userparams)
6 
8 typedef struct {
10  double * coords;
12  double * phys_coords;
14  double L;
15 } point;
16 
20 typedef struct {
21  point * p;
22  double weight;
24 
30 point * create_point(const unsigned int ndim);
31 
35 void free_point(point * p);
36 
38 double logaddexp(const double a, const double b);
40 double logsubexp(const double a, const double b);
41 
43 double compute_distance(const unsigned int ndim, const point * member, const point * other);
45 double nearest_rdistance_guess(const unsigned int ndim, const point ** live_points, const unsigned int nlive_points);
46 
47 #endif
double * coords
point coordinates on unit cube
Definition: common.h:10
double L
likelihood value
Definition: common.h:14
Definition: common.h:20
Definition: common.h:8
double * phys_coords
"physical" point coordinates, i.e. transformed
Definition: common.h:12