Top |
NcmMPIJobFitNcmMPIJobFit — MPI job object for running NcmFit |
NcmMPIJobFit * | ncm_mpi_job_fit_new () |
NcmMPIJobFit * | ncm_mpi_job_fit_ref () |
void | ncm_mpi_job_fit_free () |
void | ncm_mpi_job_fit_clear () |
NcmFit * | fit | Read / Write / Construct Only |
NcmObjArray * | function-array | Read / Write / Construct Only |
This object is a subclass of NcmMPIJob, tailored for computing best fits starting at various points in the parameter space. It is employed by NcmFit to parallelize the computation of best fits. The job involves computing the likelihood function, and if applicable, additional functions (e.g., derived quantities) at different points within the parameter space.
The MPI job is implemented as a function that takes a vector of parameters as input and produces a vector of values as output. The first value represents the m2lnL (minus twice the natural logarithm of the likelihood) at the best fit, while the subsequent values correspond to those of additional functions computed at the best fit.
NcmMPIJobFit * ncm_mpi_job_fit_new (NcmFit *fit
,NcmObjArray *func_oa
);
Creates a new NcmMPIJobFit object.
NcmMPIJobFit *
ncm_mpi_job_fit_ref (NcmMPIJobFit *mjfit
);
Increase the reference of mjfit
by one.
void
ncm_mpi_job_fit_free (NcmMPIJobFit *mjfit
);
Decrease the reference count of mjfit
by one.
void
ncm_mpi_job_fit_clear (NcmMPIJobFit **mjfit
);
Decrease the reference count of mjfit
by one, and sets the pointer *mjfit
to
NULL.
“fit”
property“fit” NcmFit *
Fit object.
Owner: NcmMPIJobFit
Flags: Read / Write / Construct Only
“function-array”
property“function-array” NcmObjArray *
Functions array.
Owner: NcmMPIJobFit
Flags: Read / Write / Construct Only