LALSimulation  5.4.0.1-fe68b98
LALSimIMRSEOBNRv4TSurrogate.c File Reference

Prototypes

static UNUSED void save_gsl_frequency_series (const char filename[], gsl_vector *x, gsl_vector *y)
 
static gsl_vector * gsl_vector_prepend_value (gsl_vector *v, double value)
 
double kernel (gsl_vector *x1, gsl_vector *x2, gsl_vector *hyperparams, gsl_vector *work)
 
double gp_predict (gsl_vector *xst, gsl_vector *hyperparams, gsl_matrix *x_train, gsl_vector *Kinv_dot_y, gsl_vector *work)
 
static UNUSED void Surrogate_Init_LALDATA (void)
 Setup Surrogate model using data files installed in $LAL_DATA_PATH. More...
 
static UNUSED int Surrogate_Init (const char dir[])
 Setup Surrogate model using data files installed in dir. More...
 
static UNUSED bool Surrogate_IsSetup (void)
 Helper function to check if the Surrogate model has been initialised. More...
 
static UNUSED int Surrogatedata_Init (Surrogatedata *romdata, const char dir[])
 
static UNUSED void Surrogatedata_Cleanup (Surrogatedata *romdata)
 
static double xi_of_lambda (double lambda)
 Coordinate transformation. More...
 
static int GPR_evaluation_5D (double q, double chi1, double chi2, double lambda1, double lambda2, gsl_matrix *hyp_amp, gsl_matrix *hyp_phi, gsl_matrix *kinv_dot_y_amp, gsl_matrix *kinv_dot_y_phi, gsl_matrix *x_train, gsl_vector *amp_at_EI_nodes, gsl_vector *phi_at_EI_nodes, gsl_vector *work)
 
static UNUSED int Surrogatedata_Init_submodel (UNUSED Surrogatedata_submodel **submodel, UNUSED const char dir[], UNUSED const char grp_name[])
 
static UNUSED void Surrogatedata_Cleanup_submodel (Surrogatedata_submodel *submodel)
 
static UNUSED int CheckParameterSpaceBounds (Surrogatedata_submodel *sur, double q, double chi1, double chi2, double lambda1, double lambda2)
 
static UNUSED int SurrogateCore (COMPLEX16FrequencySeries **hptilde, COMPLEX16FrequencySeries **hctilde, double phiRef, double fRef, double distance, double inclination, double Mtot_sec, double eta, double chi1, double chi2, double lambda1, double lambda2, const REAL8Sequence *freqs, double deltaF, SEOBNRv4TSurrogate_spline_order spline_order)
 Core function for computing the ROM waveform. More...
 
static size_t NextPow2 (const size_t n)
 
static int TaylorF2Phasing (double Mtot, double q, double chi1, double chi2, double lambda1, double lambda2, gsl_vector *Mfs, gsl_vector **PNphase)
 
static int TaylorF2Amplitude1PN (double eta, gsl_vector *Mfs, gsl_vector **PNamp)
 
static UNUSED int Surrogatedata_Init_submodel (Surrogatedata_submodel **submodel, UNUSED const char dir[], UNUSED const char grp_name[])
 
int Surrogatedata_Init (UNUSED Surrogatedata *romdata, UNUSED const char dir[])
 
int XLALSimIMRSEOBNRv4TSurrogateFrequencySequence (struct tagCOMPLEX16FrequencySeries **hptilde, struct tagCOMPLEX16FrequencySeries **hctilde, const REAL8Sequence *freqs, REAL8 phiRef, REAL8 fRef, REAL8 distance, REAL8 inclination, REAL8 m1SI, REAL8 m2SI, REAL8 chi1, REAL8 chi2, REAL8 lambda1, REAL8 lambda2, SEOBNRv4TSurrogate_spline_order spline_order)
 Compute waveform in LAL format at specified frequencies for the SEOBNRv4T_surrogate model. More...
 
int XLALSimIMRSEOBNRv4TSurrogate (struct tagCOMPLEX16FrequencySeries **hptilde, struct tagCOMPLEX16FrequencySeries **hctilde, REAL8 phiRef, REAL8 deltaF, REAL8 fLow, REAL8 fHigh, REAL8 fRef, REAL8 distance, REAL8 inclination, REAL8 m1SI, REAL8 m2SI, REAL8 chi1, REAL8 chi2, REAL8 lambda1, REAL8 lambda2, SEOBNRv4TSurrogate_spline_order spline_order)
 Compute waveform in LAL format for the SEOBNRv4T_surrogate model. More...
 

Go to the source code of this file.

Data Structures

struct  Surrogatedata_submodel
 
struct  Surrogatedata
 

Typedefs

typedef int(* load_dataPtr) (const char *, gsl_vector *, gsl_vector *, gsl_matrix *, gsl_matrix *, gsl_vector *)
 

Variables

static Surrogatedata __lalsim_SurrogateDS_data
 

Typedef Documentation

◆ load_dataPtr

typedef int(* load_dataPtr) (const char *, gsl_vector *, gsl_vector *, gsl_matrix *, gsl_matrix *, gsl_vector *)

Definition at line 120 of file LALSimIMRSEOBNRv4TSurrogate.c.

Function Documentation

◆ save_gsl_frequency_series()

static UNUSED void save_gsl_frequency_series ( const char  filename[],
gsl_vector *  x,
gsl_vector *  y 
)
static

Definition at line 234 of file LALSimIMRSEOBNRv4TSurrogate.c.

◆ gsl_vector_prepend_value()

static gsl_vector * gsl_vector_prepend_value ( gsl_vector *  v,
double  value 
)
static

Definition at line 244 of file LALSimIMRSEOBNRv4TSurrogate.c.

◆ kernel()

double kernel ( gsl_vector *  x1,
gsl_vector *  x2,
gsl_vector *  hyperparams,
gsl_vector *  work 
)

Definition at line 259 of file LALSimIMRSEOBNRv4TSurrogate.c.

◆ gp_predict()

double gp_predict ( gsl_vector *  xst,
gsl_vector *  hyperparams,
gsl_matrix *  x_train,
gsl_vector *  Kinv_dot_y,
gsl_vector *  work 
)

Definition at line 308 of file LALSimIMRSEOBNRv4TSurrogate.c.

◆ Surrogate_Init_LALDATA()

static UNUSED void Surrogate_Init_LALDATA ( void  )
static

Setup Surrogate model using data files installed in $LAL_DATA_PATH.

Definition at line 1287 of file LALSimIMRSEOBNRv4TSurrogate.c.

◆ Surrogate_Init()

static int Surrogate_Init ( const char  dir[])
static

Setup Surrogate model using data files installed in dir.

Definition at line 351 of file LALSimIMRSEOBNRv4TSurrogate.c.

◆ Surrogate_IsSetup()

static bool Surrogate_IsSetup ( void  )
static

Helper function to check if the Surrogate model has been initialised.

Definition at line 367 of file LALSimIMRSEOBNRv4TSurrogate.c.

◆ Surrogatedata_Init() [1/2]

static UNUSED int Surrogatedata_Init ( Surrogatedata *  romdata,
const char  dir[] 
)
static

◆ Surrogatedata_Cleanup()

static void Surrogatedata_Cleanup ( Surrogatedata *  romdata)
static

Definition at line 563 of file LALSimIMRSEOBNRv4TSurrogate.c.

◆ xi_of_lambda()

static double xi_of_lambda ( double  lambda)
static

Coordinate transformation.

Definition at line 375 of file LALSimIMRSEOBNRv4TSurrogate.c.

◆ GPR_evaluation_5D()

static int GPR_evaluation_5D ( double  q,
double  chi1,
double  chi2,
double  lambda1,
double  lambda2,
gsl_matrix *  hyp_amp,
gsl_matrix *  hyp_phi,
gsl_matrix *  kinv_dot_y_amp,
gsl_matrix *  kinv_dot_y_phi,
gsl_matrix *  x_train,
gsl_vector *  amp_at_EI_nodes,
gsl_vector *  phi_at_EI_nodes,
gsl_vector *  work 
)
static

Definition at line 382 of file LALSimIMRSEOBNRv4TSurrogate.c.

◆ Surrogatedata_Init_submodel() [1/2]

static UNUSED int Surrogatedata_Init_submodel ( UNUSED Surrogatedata_submodel **  submodel,
UNUSED const char  dir[],
UNUSED const char  grp_name[] 
)
static

◆ Surrogatedata_Cleanup_submodel()

static void Surrogatedata_Cleanup_submodel ( Surrogatedata_submodel *  submodel)
static

Definition at line 498 of file LALSimIMRSEOBNRv4TSurrogate.c.

◆ CheckParameterSpaceBounds()

static int CheckParameterSpaceBounds ( Surrogatedata_submodel *  sur,
double  q,
double  chi1,
double  chi2,
double  lambda1,
double  lambda2 
)
static

Definition at line 697 of file LALSimIMRSEOBNRv4TSurrogate.c.

◆ SurrogateCore()

static int SurrogateCore ( COMPLEX16FrequencySeries **  hptilde,
COMPLEX16FrequencySeries **  hctilde,
double  phiRef,
double  fRef,
double  distance,
double  inclination,
double  Mtot_sec,
double  eta,
double  chi1,
double  chi2,
double  lambda1,
double  lambda2,
const REAL8Sequence freqs_in,
double  deltaF,
SEOBNRv4TSurrogate_spline_order  spline_order 
)
static

Core function for computing the ROM waveform.

Interpolate projection coefficient data and evaluate coefficients at desired (q, chi). Construct 1D splines for amplitude and phase. Compute strain waveform from amplitude and phase.

Interpolate projection coefficient data and evaluate coefficients at desired (q, chi1, chi2). Construct 1D splines for amplitude and phase. Compute strain waveform from amplitude and phase.

Definition at line 753 of file LALSimIMRSEOBNRv4TSurrogate.c.

◆ NextPow2()

static size_t NextPow2 ( const size_t  n)
static

Definition at line 572 of file LALSimIMRSEOBNRv4TSurrogate.c.

◆ TaylorF2Phasing()

static int TaylorF2Phasing ( double  Mtot,
double  q,
double  chi1,
double  chi2,
double  lambda1,
double  lambda2,
gsl_vector *  Mfs,
gsl_vector **  PNphase 
)
static

Definition at line 577 of file LALSimIMRSEOBNRv4TSurrogate.c.

◆ TaylorF2Amplitude1PN()

static int TaylorF2Amplitude1PN ( double  eta,
gsl_vector *  Mfs,
gsl_vector **  PNamp 
)
static

Definition at line 674 of file LALSimIMRSEOBNRv4TSurrogate.c.

◆ Surrogatedata_Init_submodel() [2/2]

static UNUSED int Surrogatedata_Init_submodel ( Surrogatedata_submodel **  submodel,
UNUSED const char  dir[],
UNUSED const char  grp_name[] 
)
static

Definition at line 429 of file LALSimIMRSEOBNRv4TSurrogate.c.

◆ Surrogatedata_Init() [2/2]

int Surrogatedata_Init ( UNUSED Surrogatedata *  romdata,
UNUSED const char  dir[] 
)

Definition at line 519 of file LALSimIMRSEOBNRv4TSurrogate.c.

Variable Documentation

◆ __lalsim_SurrogateDS_data

Surrogatedata __lalsim_SurrogateDS_data
static

Definition at line 118 of file LALSimIMRSEOBNRv4TSurrogate.c.