gambit is hosted by Hepforge, IPPP Durham
GAMBIT  v1.5.0-252-gf9a3f78
a Global And Modular Bsm Inference Tool
Gambit::PolyChord Namespace Reference

Classes

class  LogLikeWrapper
 Class to connect PolyChord log-likelihood function and ScannerBit likelihood function. More...
 

Typedefs

typedef Gambit::Scanner::like_ptr scanPtr
 Typedef for the ScannerBit pointer to the external loglikelihood function. More...
 

Functions

double callback_loglike (double *, int, double *, int)
 C-functions to pass to PolyChord for the callbacks. More...
 
void callback_dumper (int, int, int, double *, double *, double *, double, double)
 

Variables

LogLikeWrapperglobal_loglike_object
 Global pointer to loglikelihood wrapper object, for use in the PolyChord callback functions. More...
 

Typedef Documentation

◆ scanPtr

Typedef for the ScannerBit pointer to the external loglikelihood function.

Definition at line 84 of file polychord.hpp.

Function Documentation

◆ callback_dumper()

void Gambit::PolyChord::callback_dumper ( int  ndead,
int  nlive,
int  npars,
double live,
double dead,
double logweights,
double  logZ,
double  logZerr 
)

Definition at line 263 of file polychord.cpp.

References global_loglike_object.

Referenced by scanner_plugin().

266  {
268  dumper(ndead, nlive, npars, live, dead, logweights, logZ, logZerr);
269  }
LogLikeWrapper * global_loglike_object
Global pointer to loglikelihood wrapper object, for use in the PolyChord callback functions...
Definition: polychord.cpp:47
Here is the caller graph for this function:

◆ callback_loglike()

double Gambit::PolyChord::callback_loglike ( double Cube,
int  ndim,
double phi,
int  nderived 
)

C-functions to pass to PolyChord for the callbacks.

Plain-vanilla functions to pass to PolyChord for the callback.

Definition at line 255 of file polychord.cpp.

References global_loglike_object, and Gambit::PolyChord::LogLikeWrapper::LogLike().

Referenced by scanner_plugin().

256  {
257  // Call global interface to ScannerBit loglikelihood function
258  // Could also pass this object in via context pointer, but that
259  // involves some casting and could risk a segfault.
260  return global_loglike_object->LogLike(Cube, ndim, phi, nderived);
261  }
LogLikeWrapper * global_loglike_object
Global pointer to loglikelihood wrapper object, for use in the PolyChord callback functions...
Definition: polychord.cpp:47
double LogLike(double *, int, double *, int)
Main interface function from PolyChord to ScannerBit-supplied loglikelihood function.
Definition: polychord.cpp:291
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ global_loglike_object

LogLikeWrapper* Gambit::PolyChord::global_loglike_object

Global pointer to loglikelihood wrapper object, for use in the PolyChord callback functions.

Definition at line 47 of file polychord.cpp.

Referenced by callback_dumper(), callback_loglike(), and scanner_plugin().