Method

NumCosmoMathFitcopy_new

Declaration [src]

NcmFit*
ncm_fit_copy_new (
  NcmFit* fit,
  NcmLikelihood* lh,
  NcmMSet* mset,
  NcmFitGradType gtype
)

Description [src]

Duplicates the NcmFit object with new references for its contents.

Parameters

lh

Type: NcmLikelihood

A NcmLikelihood.

The data is owned by the caller of the method.
mset

Type: NcmMSet

A NcmMSet.

The data is owned by the caller of the method.
gtype

Type: NcmFitGradType

A NcmFitGradType.

Return value

Type: NcmFit

Copy of fit.

The caller of the method takes ownership of the returned data, and is responsible for freeing it.