NcmReparam

NcmReparam — Abstract class for model reparametrization.

Properties

char * compat-type Read / Write / Construct Only
guint length Read / Write / Construct Only
GVariant * params-desc Read / Write

Types and Values

Object Hierarchy

    GObject
    ╰── NcmReparam
        ├── NcHICosmoDEReparamCMB
        ├── NcHICosmoDEReparamOk
        ├── NcHICosmoGCGReparamCMB
        ├── NcHICosmoGCGReparamOk
        ├── NcHICosmoIDEM2ReparamCMB
        ├── NcHICosmoIDEM2ReparamOk
        ├── NcHIReionCambReparamTau
        ╰── NcmReparamLinear

Description

FIXME

Functions

NcmReparamV ()

gboolean
(*NcmReparamV) (NcmReparam *reparam,
                struct _NcmModel *model);

FIXME

Parameters

reparam

FIXME

 

model

FIXME

 

NcmReparamJ ()

gboolean
(*NcmReparamJ) (NcmReparam *reparam,
                struct _NcmModel *model,
                NcmMatrix *jac);

FIXME

Parameters

reparam

FIXME

 

model

FIXME

 

jac

FIXME

 

ncm_reparam_ref ()

NcmReparam *
ncm_reparam_ref (NcmReparam *reparam);

FIXME

Parameters

reparam

a NcmReparam

 

Returns

FIXME.

[transfer full]


ncm_reparam_free ()

void
ncm_reparam_free (NcmReparam *reparam);

FIXME

Parameters

reparam

a NcmReparam

 

ncm_reparam_clear ()

void
ncm_reparam_clear (NcmReparam **reparam);

FIXME

Parameters

reparam

a NcmReparam

 

ncm_reparam_get_compat_type ()

GType
ncm_reparam_get_compat_type (NcmReparam *reparam);

FIXME

Parameters

reparam

a NcmReparam

 

Returns

the compatible GType for this reparametrization.


ncm_reparam_old2new ()

void
ncm_reparam_old2new (NcmReparam *reparam,
                     struct _NcmModel *model);

Using the values set in the original parametrization update the values of the new parametrization.

[virtual old2new]

Parameters

reparam

a NcmReparam

 

model

a NcmModel

 

ncm_reparam_new2old ()

void
ncm_reparam_new2old (NcmReparam *reparam,
                     struct _NcmModel *model);

Using the values set in the new parametrization update the values of the original parametrization.

[virtual new2old]

Parameters

reparam

a NcmReparam

 

model

a NcmModel

 

ncm_reparam_jac ()

void
ncm_reparam_jac (NcmReparam *reparam,
                 struct _NcmModel *model,
                 NcmMatrix *jac);

FIXME

[virtual jac]

Parameters

reparam

a NcmReparam

 

model

a NcmModel

 

jac

a NcmMatrix

 

ncm_reparam_grad_old2new ()

void
ncm_reparam_grad_old2new (NcmReparam *reparam,
                          struct _NcmModel *model,
                          NcmMatrix *jac,
                          NcmVector *old_grad,
                          NcmVector *new_grad);

FIXME

Parameters

reparam

a NcmReparam

 

model

FIXME

 

jac

a NcmMatrix

 

old_grad

a NcmVector

 

new_grad

a NcmVector

 

ncm_reparam_M_old2new ()

void
ncm_reparam_M_old2new (NcmReparam *reparam,
                       struct _NcmModel *model,
                       NcmMatrix *jac,
                       NcmMatrix *old_M,
                       NcmMatrix *new_M);

FIXME

Parameters

reparam

a NcmReparam

 

model

FIXME

 

jac

a NcmMatrix

 

old_M

a NcmMatrix

 

new_M

a NcmMatrix

 

ncm_reparam_get_params_desc_dict ()

GVariant *
ncm_reparam_get_params_desc_dict (NcmReparam *reparam);

Returns a GVariant containing a dictionary describing the new parameters.

Parameters

reparam

a NcmReparam.

 

Returns

a GVariant dictionary.


ncm_reparam_set_params_desc_dict ()

void
ncm_reparam_set_params_desc_dict (NcmReparam *reparam,
                                  GVariant *pdesc_dict);

Sets the new parameters descriptions using the information from pdesc_dict .

Parameters

reparam

a NcmReparam.

 

pdesc_dict

a GVariant containing the new parameters descriptions.

 

ncm_reparam_set_param_desc ()

void
ncm_reparam_set_param_desc (NcmReparam *reparam,
                            guint i,
                            NcmSParam *sp);

Change the i -th parameter description using sp .

Parameters

reparam

a NcmReparam

 

i

index of the changed parameter.

 

sp

NcmSParam describing the new parameter.

 

ncm_reparam_peek_param_desc ()

NcmSParam *
ncm_reparam_peek_param_desc (NcmReparam *reparam,
                             guint i);

Peeks the i -th parameter description.

Parameters

reparam

a NcmReparam

 

i

index of the changed parameter.

 

Returns

The i -th parameter description.

[transfer none]


ncm_reparam_get_param_desc ()

NcmSParam *
ncm_reparam_get_param_desc (NcmReparam *reparam,
                            guint i);

Gets the i -th parameter description.

Parameters

reparam

a NcmReparam

 

i

index of the changed parameter.

 

Returns

The i -th parameter description.

[transfer full]


ncm_reparam_set_param_desc_full ()

void
ncm_reparam_set_param_desc_full (NcmReparam *reparam,
                                 guint i,
                                 const gchar *name,
                                 const gchar *symbol,
                                 gdouble lower_bound,
                                 gdouble upper_bound,
                                 gdouble scale,
                                 gdouble abstol,
                                 gdouble default_val,
                                 NcmParamType ftype);

FIXME

Parameters

reparam

a NcmReparam

 

i

index of the changed parameter.

 

name

“name”.

 

symbol

“symbol”.

 

lower_bound

value of “lower-bound”.

 

upper_bound

value of “upper-bound”.

 

scale

value of “scale”.

 

abstol

value of “absolute-tolerance”.

 

default_val

value of “default-value”.

 

ftype

a NcmParamType.

 

ncm_reparam_index_from_name ()

gboolean
ncm_reparam_index_from_name (NcmReparam *reparam,
                             const gchar *param_name,
                             guint *i);

Looks for a parameter named param_name and returns TRUE if found. If found puts at i its index.

Parameters

reparam

a NcmReparam.

 

param_name

parameter name.

 

i

parameter index.

[out]

Returns

whenever the parameter is found.

Types and Values

NCM_REPARAM_PARAMS_DESC_DICT_TYPE

#define NCM_REPARAM_PARAMS_DESC_DICT_TYPE "a{u"NCM_SERIALIZE_OBJECT_TYPE"}"

Property Details

The “compat-type” property

  “compat-type”              char *

Compatible type.

Owner: NcmReparam

Flags: Read / Write / Construct Only

Default value: "NcmModel"


The “length” property

  “length”                   guint

System's length.

Owner: NcmReparam

Flags: Read / Write / Construct Only

Default value: 0


The “params-desc” property

  “params-desc”              GVariant *

News parameter descriptions.

Owner: NcmReparam

Flags: Read / Write

Allowed values: GVariant<a{u{sa{sv}}}>

Default value: NULL