Module which caches computed coherent results. More...
Prototypes | |
WeaveCacheQueries * | XLALWeaveCacheQueriesCreate (const LatticeTiling *semi_tiling, const SuperskyTransformData *semi_rssky_transf, const double dfreq, const UINT4 nqueries, const UINT4 nfreq_partitions) |
Create storage for a series of cache queries. More... | |
void | XLALWeaveCacheQueriesDestroy (WeaveCacheQueries *queries) |
Destroy storage for a series of cache queries. More... | |
int | XLALWeaveCacheQueriesInit (WeaveCacheQueries *queries, const UINT8 semi_index, const gsl_vector *semi_rssky, const INT4 semi_left, const INT4 semi_right, const UINT4 freq_partition_index) |
Initialise a series of cache queries. More... | |
int | XLALWeaveCacheQuery (const WeaveCache *cache, WeaveCacheQueries *queries, const UINT4 query_index) |
Query a cache for the results nearest to a given coherent point. More... | |
int | XLALWeaveCacheQueriesFinal (WeaveCacheQueries *queries, PulsarDopplerParams *semi_phys, UINT4 *semi_nfreqs) |
Finalise a series of cache queries. More... | |
int | XLALWeaveCacheQueriesGetCounts (const WeaveCacheQueries *queries, UINT8 *coh_nres, UINT8 *coh_ntmpl, UINT8 *semi_ntmpl) |
Get number of computed coherent results, and number of coherent and semicoherent templates. More... | |
WeaveCache * | XLALWeaveCacheCreate (const LatticeTiling *coh_tiling, const BOOLEAN interpolation, const SuperskyTransformData *coh_rssky_transf, const SuperskyTransformData *semi_rssky_transf, WeaveCohInput *coh_input, const UINT4 max_size, const BOOLEAN all_gc) |
Create a cache. More... | |
void | XLALWeaveCacheDestroy (WeaveCache *cache) |
Destroy a cache. More... | |
int | XLALWeaveGetCacheMeanMaxSize (REAL4 *cache_mean_max_size, const size_t ncache, WeaveCache *const *cache) |
Determine the mean maximum size obtained by caches. More... | |
int | XLALWeaveCacheWriteInfo (FITSFile *file, const size_t ncache, WeaveCache *const *cache) |
Write various information from caches to a FITS file. More... | |
int | XLALWeaveCacheExpire (WeaveCache *cache) |
Expire all items in the cache. More... | |
int | XLALWeaveCacheClear (WeaveCache *cache) |
Clear all items in the cache from memory. More... | |
int | XLALWeaveCacheRetrieve (WeaveCache *cache, const WeaveCacheQueries *queries, const UINT4 query_index, const WeaveCohResults **coh_res, UINT8 *coh_index, UINT4 *coh_offset, WeaveSearchTiming *tim) |
Retrieve coherent results for a given query, or compute new coherent results if not found. More... | |
Module which caches computed coherent results.
Definition in file CacheResults.h.
Go to the source code of this file.
WeaveCacheQueries * XLALWeaveCacheQueriesCreate | ( | const LatticeTiling * | semi_tiling, |
const SuperskyTransformData * | semi_rssky_transf, | ||
const double | dfreq, | ||
const UINT4 | nqueries, | ||
const UINT4 | nfreq_partitions | ||
) |
Create storage for a series of cache queries.
Definition at line 305 of file CacheResults.c.
void XLALWeaveCacheQueriesDestroy | ( | WeaveCacheQueries * | queries | ) |
Destroy storage for a series of cache queries.
Definition at line 383 of file CacheResults.c.
int XLALWeaveCacheQueriesInit | ( | WeaveCacheQueries * | queries, |
const UINT8 | semi_index, | ||
const gsl_vector * | semi_rssky, | ||
const INT4 | semi_left, | ||
const INT4 | semi_right, | ||
const UINT4 | freq_partition_index | ||
) |
Initialise a series of cache queries.
Definition at line 404 of file CacheResults.c.
int XLALWeaveCacheQuery | ( | const WeaveCache * | cache, |
WeaveCacheQueries * | queries, | ||
const UINT4 | query_index | ||
) |
Query a cache for the results nearest to a given coherent point.
Definition at line 449 of file CacheResults.c.
int XLALWeaveCacheQueriesFinal | ( | WeaveCacheQueries * | queries, |
PulsarDopplerParams * | semi_phys, | ||
UINT4 * | semi_nfreqs | ||
) |
Finalise a series of cache queries.
Definition at line 515 of file CacheResults.c.
int XLALWeaveCacheQueriesGetCounts | ( | const WeaveCacheQueries * | queries, |
UINT8 * | coh_nres, | ||
UINT8 * | coh_ntmpl, | ||
UINT8 * | semi_ntmpl | ||
) |
Get number of computed coherent results, and number of coherent and semicoherent templates.
Definition at line 580 of file CacheResults.c.
WeaveCache * XLALWeaveCacheCreate | ( | const LatticeTiling * | coh_tiling, |
const BOOLEAN | interpolation, | ||
const SuperskyTransformData * | coh_rssky_transf, | ||
const SuperskyTransformData * | semi_rssky_transf, | ||
WeaveCohInput * | coh_input, | ||
const UINT4 | max_size, | ||
const BOOLEAN | all_gc | ||
) |
Create a cache.
Definition at line 616 of file CacheResults.c.
void XLALWeaveCacheDestroy | ( | WeaveCache * | cache | ) |
Destroy a cache.
Definition at line 766 of file CacheResults.c.
int XLALWeaveGetCacheMeanMaxSize | ( | REAL4 * | cache_mean_max_size, |
const size_t | ncache, | ||
WeaveCache *const * | cache | ||
) |
Determine the mean maximum size obtained by caches.
Definition at line 783 of file CacheResults.c.
Write various information from caches to a FITS file.
Definition at line 809 of file CacheResults.c.
int XLALWeaveCacheExpire | ( | WeaveCache * | cache | ) |
Expire all items in the cache.
Definition at line 833 of file CacheResults.c.
int XLALWeaveCacheClear | ( | WeaveCache * | cache | ) |
Clear all items in the cache from memory.
Definition at line 852 of file CacheResults.c.
int XLALWeaveCacheRetrieve | ( | WeaveCache * | cache, |
const WeaveCacheQueries * | queries, | ||
const UINT4 | query_index, | ||
const WeaveCohResults ** | coh_res, | ||
UINT8 * | coh_index, | ||
UINT4 * | coh_offset, | ||
WeaveSearchTiming * | tim | ||
) |
Retrieve coherent results for a given query, or compute new coherent results if not found.
Definition at line 874 of file CacheResults.c.