NcmMPIJobFEval

NcmMPIJobFEval — MPI job object for evaluating fit steps

Functions

Properties

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

Types and Values

Object Hierarchy

    GObject
    ╰── NcmMPIJob
        ╰── NcmMPIJobFEval

Description

This object is a subclass of NcmMPIJob and is designed to implement an MPI job for evaluating fit steps. It is employed by NcmFit to parallelize the evaluation of the posterior function. The job entails computing the posterior function and, if applicable, additional functions (e.g., derived quantities) at a specified point 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 posterior function's value, while the subsequent values correspond to those of additional functions.

Functions

ncm_mpi_job_feval_new ()

NcmMPIJobFEval *
ncm_mpi_job_feval_new (NcmFit *fit,
                       NcmObjArray *func_oa);

Creates a new NcmMPIJobFEval object.

Parameters

fit

a NcmFit

 

func_oa

a NcmObjArray.

[nullable]

Returns

a new NcmMPIJobFEval.


ncm_mpi_job_feval_ref ()

NcmMPIJobFEval *
ncm_mpi_job_feval_ref (NcmMPIJobFEval *mjfeval);

Increase the reference of mjfeval by one.

Parameters

mjfeval

a NcmMPIJobFEval

 

Returns

mjfeval .

[transfer full]


ncm_mpi_job_feval_free ()

void
ncm_mpi_job_feval_free (NcmMPIJobFEval *mjfeval);

Decrease the reference count of mjfeval by one.

Parameters

mjfeval

a NcmMPIJobFEval

 

ncm_mpi_job_feval_clear ()

void
ncm_mpi_job_feval_clear (NcmMPIJobFEval **mjfeval);

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

Parameters

mjfeval

a NcmMPIJobFEval

 

Types and Values

NCM_TYPE_MPI_JOB_FEVAL

#define NCM_TYPE_MPI_JOB_FEVAL (ncm_mpi_job_feval_get_type ())

NcmMPIJobFEval

typedef struct _NcmMPIJobFEval NcmMPIJobFEval;

Property Details

The “fit” property

  “fit”                      NcmFit *

Fit object.

Owner: NcmMPIJobFEval

Flags: Read / Write / Construct Only


The “function-array” property

  “function-array”           NcmObjArray *

Functions array.

Owner: NcmMPIJobFEval

Flags: Read / Write / Construct Only