25 #include <lal/TriggerInterpolation.h>
47 if (creal(ymax) != 27)
64 if (crealf(ymax) != 27)
66 if (cimagf(ymax) != 0)
72 const REAL8 y[] = {0, 1, 8, 27, 256};
87 const REAL4 y[] = {256, 27, 8, 1, 0};
102 const COMPLEX16 y[] = {0, 1.23412285-1.56122275*I, -2.06157986+0.78298714*I, -0.52811449+0.47859189*I, 0.42450302+2.06877714*I};
109 if (fabs(0.108106552865 - tmax) > 1e-8)
111 if (fabs(-2.10041938439 - creal(ymax)) > 1e-8)
113 if (fabs(0.85409051094 - cimag(ymax)) > 1e-8)
119 const COMPLEX8 y[] = {0, 1.23412285-1.56122275*I, -2.06157986+0.78298714*I, -0.52811449+0.47859189*I, 0.42450302+2.06877714*I};
126 if (fabs(0.108106552865 - tmax) > 1e-6)
128 if (fabs(-2.10041938439 - crealf(ymax)) > 1e-6)
130 if (fabs(0.85409051094 - cimagf(ymax)) > 1e-6)
int main(__attribute__((unused)) int argc, __attribute__((unused)) char **argv)
int XLALCOMPLEX8ApplyCubicSplineTriggerInterpolant(CubicSplineTriggerInterpolant *interp, double *tmax, COMPLEX8 *ymax, const COMPLEX8 *y)
CubicSplineTriggerInterpolant * XLALCreateCubicSplineTriggerInterpolant(unsigned int window)
Constructor.
int XLALCOMPLEX16ApplyCubicSplineTriggerInterpolant(CubicSplineTriggerInterpolant *interp, double *t, COMPLEX16 *y, const COMPLEX16 *data)
Perform interpolation using the allocated workspace.
void XLALDestroyCubicSplineTriggerInterpolant(CubicSplineTriggerInterpolant *interp)
Destructor.
int XLALREAL4ApplyCubicSplineTriggerInterpolant(CubicSplineTriggerInterpolant *interp, double *tmax, REAL4 *ymax, const REAL4 *y)
int XLALREAL8ApplyCubicSplineTriggerInterpolant(CubicSplineTriggerInterpolant *interp, double *tmax, REAL8 *ymax, const REAL8 *y)
double complex COMPLEX16
Double-precision floating-point complex number (16 bytes total)
double REAL8
Double precision real floating-point number (8 bytes).
float complex COMPLEX8
Single-precision floating-point complex number (8 bytes total)
float REAL4
Single precision real floating-point number (4 bytes).