LALSimulation  5.4.0.1-fe68b98
LALSimIMRSpinAlignedEOBGSLOptimizedInterpolation.c File Reference

Prototypes

static UNUSED int SEOBNRv2OptimizedInterpolatorNoAmpPhase (REAL8Array *yin, REAL8 tinit, REAL8 deltat, UINT4 num_input_times, REAL8Array **yout)
 This function is largely based on/copied from XLALAdaptiveRungeKutta4(), which exists inside the lal/lib/utilities/LALAdaptiveRungeKutta4.c file subroutine. More...
 
static UNUSED int SEOBNRv2OptimizedInterpolatorOnlyAmpPhase (REAL8Array *yin, REAL8 tinit, REAL8 deltat, UINT4 num_input_times, REAL8Array **yout)
 This function applies the same routines as SEOBNRv2OptimizedInterpolatorNoAmpPhase() above to interpolate only the amplitude & phase; see documentation for SEOBNRv2OptimizedInterpolatorNoAmpPhase(). More...
 

Go to the source code of this file.

Macros

#define _LALSIMIMRSPINALIGNEDEOBGSLOPTIMIZEDINTERPOLATION_C
 

Macro Definition Documentation

◆ _LALSIMIMRSPINALIGNEDEOBGSLOPTIMIZEDINTERPOLATION_C

#define _LALSIMIMRSPINALIGNEDEOBGSLOPTIMIZEDINTERPOLATION_C

Function Documentation

◆ SEOBNRv2OptimizedInterpolatorNoAmpPhase()

static UNUSED int SEOBNRv2OptimizedInterpolatorNoAmpPhase ( REAL8Array yin,
REAL8  tinit,
REAL8  deltat,
UINT4  num_input_times,
REAL8Array **  yout 
)
static

This function is largely based on/copied from XLALAdaptiveRungeKutta4(), which exists inside the lal/lib/utilities/LALAdaptiveRungeKutta4.c file subroutine.

It reads in an array of timeseries that contain data not evenly spaced in time and performs cubic spline interpolations to resample the data to uniform time sampling. Interpolations use GSL's built-in routines, which recompute interpolation coefficients each time the itnerpolator is called. This can be extremely inefficient; in case of SEOBNRv4, first data points exist at very large dt, and interp. coefficients might be needlessly recomputed 10,000+ times or more. We also made the optimization that assumes the data are sampled at points monotone in time. tinit and deltat specify the desired initial time and time spacing for the output interpolated data, num_input_times denotes the number of points yin arrays are sampled in time. yout is the output array.

Definition at line 56 of file LALSimIMRSpinAlignedEOBGSLOptimizedInterpolation.c.

◆ SEOBNRv2OptimizedInterpolatorOnlyAmpPhase()

static UNUSED int SEOBNRv2OptimizedInterpolatorOnlyAmpPhase ( REAL8Array yin,
REAL8  tinit,
REAL8  deltat,
UINT4  num_input_times,
REAL8Array **  yout 
)
static

This function applies the same routines as SEOBNRv2OptimizedInterpolatorNoAmpPhase() above to interpolate only the amplitude & phase; see documentation for SEOBNRv2OptimizedInterpolatorNoAmpPhase().

Definition at line 134 of file LALSimIMRSpinAlignedEOBGSLOptimizedInterpolation.c.