Struct
NumCosmoXcorKernelIntegrand
Description [src]
struct NcXcorKernelIntegrand {
guint len;
NcXcorKernelIntegrandEval eval_func;
NcXcorKernelIntegrandGetRange get_range_func;
gpointer data;
GDestroyNotify data_free;
}
A reference-counted closure for computing kernel integrands.
The eval_func function should fill len values in the W array
for the given wavenumber k.
Structure members
len:guintNumber of components in the integrand.
eval_func:NcXcorKernelIntegrandEvalFunction to evaluate the integrand at
k, fillingW[len].get_range_func:NcXcorKernelIntegrandGetRangeFunction to get the valid k range for this integrand.
data:gpointerUser data passed to
eval_funcandget_range_func.data_free:GDestroyNotifyFunction to free
data, orNULLif no cleanup needed.
Functions
nc_xcor_kernel_integrand_clear
If *integrand is not NULL, decreases its reference count and
sets the pointer to NULL.
Instance methods
nc_xcor_kernel_integrand_eval_array
Evaluates the integrand at wavenumber k and returns the results
in a newly allocated GArray. This is a convenience wrapper around
nc_xcor_kernel_integrand_eval() that handles array allocation.
nc_xcor_kernel_integrand_unref
Decreases the reference count of integrand by one atomically.
When the reference count reaches zero, frees integrand and its
associated data using the free function provided at creation time
(if any).