32#include <gsl/gsl_math.h>
34#include <lal/LALStdlib.h>
35#include <lal/LALString.h>
36#include <lal/XLALError.h>
37#include <lal/UserInput.h>
38#include <lal/LatticeTiling.h>
39#include <lal/DopplerFullScan.h>
40#include <lal/PtoleMetric.h>
41#include <lal/GSLHelpers.h>
42#include <lal/LALPulsarVCSInfo.h>
56int main(
int argc,
char *argv[] )
69 XLAL_CHECK_MAIN(
XLALRegisterUvarMember( age_braking,
REAL8Vector, 0, OPTIONAL,
"Age/braking index parameter space: alpha,delta,freq,freqband,age,minbrake,maxbrake" ) ==
XLAL_SUCCESS,
XLAL_EFUNC );
86 LatticeTiling *
tiling = NULL;
94 for (
size_t i = 0;
i <
n; ++
i ) {
121 gsl_matrix *
metric = NULL;
124 gsl_matrix_set_identity(
metric );
125 gsl_matrix_view spin_metric = gsl_matrix_submatrix(
metric, 2, 2,
n - 2,
n - 2 );
129 gsl_matrix_set_identity(
metric );
132 gsl_matrix_free(
metric );
int main(int argc, char *argv[])
const UserChoices MetricTypeChoices
int XLALSetLatticeTilingF2DotBrakingBound(LatticeTiling *tiling, const size_t freq_dimension, const size_t f1dot_dimension, const size_t f2dot_dimension, const double min_braking, const double max_braking)
Set a second spindown bound derived from braking indices.
int XLALSetLatticeTilingF1DotAgeBrakingBound(LatticeTiling *tiling, const size_t freq_dimension, const size_t f1dot_dimension, const double age, const double min_braking, const double max_braking)
Set a first spindown bound derived from spindown age and braking indices.
void LALCheckMemoryLeaks(void)
const LALVCSInfoList lalPulsarVCSInfoList
NULL-terminated list of VCS and build information for LALPulsar and its dependencies
static double double delta
size_t XLALTotalLatticeTilingDimensions(const LatticeTiling *tiling)
Return the total number of dimensions of the lattice tiling.
UINT8 XLALTotalLatticeTilingPoints(const LatticeTilingIterator *itr)
Return the total number of points covered by the lattice tiling iterator.
int XLALSetLatticeTilingConstantBound(LatticeTiling *tiling, const size_t dim, const double bound1, const double bound2)
Set a constant lattice tiling parameter-space bound, given by the minimum and maximum of the two supp...
int XLALSetTilingLatticeAndMetric(LatticeTiling *tiling, const TilingLattice lattice, const gsl_matrix *metric, const double max_mismatch)
Set the tiling lattice, parameter-space metric, and maximum prescribed mismatch.
LatticeTilingIterator * XLALCreateLatticeTilingIterator(const LatticeTiling *tiling, const size_t itr_ndim)
Create a new lattice tiling iterator.
void XLALDestroyLatticeTilingIterator(LatticeTilingIterator *itr)
Destroy a lattice tiling iterator.
void XLALDestroyLatticeTiling(LatticeTiling *tiling)
Destroy a lattice tiling.
LatticeTiling * XLALCreateLatticeTiling(const size_t ndim)
Create a new lattice tiling.
const UserChoices TilingLatticeChoices
Static array of all :tagTilingLattice choices, for use by the UserInput module parsing routines.
@ TILING_LATTICE_ANSTAR
An-star ( ) lattice.
int XLALSpindownMetric(gsl_matrix *metric, double Tspan)
Frequency and frequency derivative components of the metric, suitable for a directed search with only...
#define XLAL_CHECK(assertion,...)
#define XLAL_CHECK_MAIN(assertion,...)
REAL8Vector * age_braking