Method

NumCosmoMathModeldup

Declaration [src]

NcmModel*
ncm_model_dup (
  NcmModel* model,
  NcmSerialize* ser
)

Description [src]

Duplicates model by serializing and deserializing it.

Parameters

ser

Type: NcmSerialize

A NcmSerialize.

The data is owned by the caller of the method.

Return value

Type: NcmModel

A duplicate of model.

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