NcmMPIJobFit

NcmMPIJobFit — MPI job object for running NcmFit

Functions

Properties

NcmFit * fit Read / Write / Construct Only
NcmObjArray * function-array Read / Write / Construct Only

Types and Values

Object Hierarchy

    GObject
    ╰── NcmMPIJob
        ╰── NcmMPIJobFit

Description

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.

Functions

ncm_mpi_job_fit_new ()

NcmMPIJobFit *
ncm_mpi_job_fit_new (NcmFit *fit,
                     NcmObjArray *func_oa);

Creates a new NcmMPIJobFit object.

Parameters

fit

a NcmFit

 

func_oa

a NcmObjArray.

[nullable]

Returns

a new NcmMPIJobFit.


ncm_mpi_job_fit_ref ()

NcmMPIJobFit *
ncm_mpi_job_fit_ref (NcmMPIJobFit *mjfit);

Increase the reference of mjfit by one.

Parameters

mjfit

a NcmMPIJobFit

 

Returns

mjfit .

[transfer full]


ncm_mpi_job_fit_free ()

void
ncm_mpi_job_fit_free (NcmMPIJobFit *mjfit);

Decrease the reference count of mjfit by one.

Parameters

mjfit

a NcmMPIJobFit

 

ncm_mpi_job_fit_clear ()

void
ncm_mpi_job_fit_clear (NcmMPIJobFit **mjfit);

Decrease the reference count of mjfit by one, and sets the pointer *mjfit to NULL.

Parameters

mjfit

a NcmMPIJobFit

 

Types and Values

NCM_TYPE_MPI_JOB_FIT

#define NCM_TYPE_MPI_JOB_FIT (ncm_mpi_job_fit_get_type ())

NcmMPIJobFit

typedef struct _NcmMPIJobFit NcmMPIJobFit;

Property Details

The “fit” property

  “fit”                      NcmFit *

Fit object.

Owner: NcmMPIJobFit

Flags: Read / Write / Construct Only


The “function-array” property

  “function-array”           NcmObjArray *

Functions array.

Owner: NcmMPIJobFit

Flags: Read / Write / Construct Only