| NumCosmo Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | ||||
Synopsis
#define NCM_MODEL_MAX_ID struct NcmMSetModelDesc; struct NcmMSetClass; struct NcmMSet; struct NcmMSetPIndex; void ncm_mset_model_register_id (NcmModelClass *model_class,gchar *ns,gchar *desc,gchar *long_desc); #define NCM_MSET_MODEL_ID_FUNC (model_ns) #define NCM_MSET_MODEL_DECLARE_ID (model_ns) #define NCM_MSET_MODEL_REGISTER_ID (model_ns, typemacro) NcmMSetPIndex * ncm_mset_pindex_new (NcmModelID mid,guint pid); NcmMSetPIndex * ncm_mset_pindex_dup (NcmMSetPIndex *pi); void ncm_mset_pindex_free (NcmMSetPIndex *pi); NcmMSet * ncm_mset_empty_new (void); NcmMSet * ncm_mset_new (NcmModel *model0,...); NcmMSet * ncm_mset_newv (NcmModel *model0,va_list ap); NcmMSet * ncm_mset_new_array (NcmModel **model); NcmMSet * ncm_mset_ref (NcmMSet *mset); NcmMSet * ncm_mset_dup (NcmMSet *mset); NcmMSet * ncm_mset_copy (NcmMSet *mset); void ncm_mset_copyto (NcmMSet *mset_src,NcmMSet *mset_dest); void ncm_mset_free (NcmMSet *mset); void ncm_mset_clear (NcmMSet **mset); NcmModel * ncm_mset_peek (NcmMSet *mset,NcmModelID mid); NcmModel * ncm_mset_get (NcmMSet *mset,NcmModelID mid); void ncm_mset_remove (NcmMSet *mset,NcmModelID mid); void ncm_mset_set (NcmMSet *mset,NcmModel *model); gboolean ncm_mset_exists (NcmMSet *mset,NcmModel *model); void ncm_mset_prepare_fparam_map (NcmMSet *mset); guint ncm_mset_total_len (NcmMSet *mset); guint ncm_mset_fparam_len (NcmMSet *mset); guint ncm_mset_max_param_name (NcmMSet *mset); guint ncm_mset_max_fparam_name (NcmMSet *mset); guint ncm_mset_max_model_nick (NcmMSet *mset); void ncm_mset_pretty_log (NcmMSet *mset); void ncm_mset_params_pretty_print (NcmMSet *mset,FILE *out,gchar *header); void ncm_mset_params_log_vals (NcmMSet *mset); void ncm_mset_params_print_vals (NcmMSet *mset,FILE *out); gboolean ncm_mset_params_valid (NcmMSet *mset); gboolean ncm_mset_cmp (NcmMSet *mset0,NcmMSet *mset1,gboolean cmp_model); void ncm_mset_param_set (NcmMSet *mset,NcmModelID mid,guint pid,const gdouble x); gdouble ncm_mset_param_get (NcmMSet *mset,NcmModelID mid,guint pid); gdouble ncm_mset_orig_param_get (NcmMSet *mset,NcmModelID mid,guint pid); guint ncm_mset_param_len (NcmMSet *mset); const gchar * ncm_mset_param_name (NcmMSet *mset,NcmModelID mid,guint pid); void ncm_mset_param_set_ftype (NcmMSet *mset,NcmModelID mid,guint pid,NcmParamType ftype); void ncm_mset_param_set_all_ftype (NcmMSet *mset,NcmParamType ftype); void ncm_mset_param_set_vector (NcmMSet *mset,NcmVector *params); void ncm_mset_param_get_vector (NcmMSet *mset,NcmVector *params); gdouble ncm_mset_param_get_scale (NcmMSet *mset,NcmModelID mid,guint pid); gdouble ncm_mset_param_get_lower_bound (NcmMSet *mset,NcmModelID mid,guint pid); gdouble ncm_mset_param_get_upper_bound (NcmMSet *mset,NcmModelID mid,guint pid); gdouble ncm_mset_param_get_abstol (NcmMSet *mset,NcmModelID mid,guint pid); NcmParamType ncm_mset_param_get_ftype (NcmMSet *mset,NcmModelID mid,guint pid); void ncm_mset_param_set_pi (NcmMSet *mset,NcmMSetPIndex *pi,const gdouble *x,guint n); void ncm_mset_param_get_pi (NcmMSet *mset,NcmMSetPIndex *pi,gdouble *x,guint n); void ncm_mset_fparams_get_vector (NcmMSet *mset,NcmVector *x); void ncm_mset_fparams_set_vector (NcmMSet *mset,const NcmVector *x); void ncm_mset_fparams_set_array (NcmMSet *mset,const gdouble *x); void ncm_mset_fparams_set_gsl_vector (NcmMSet *mset,const gsl_vector *x); guint ncm_mset_fparams_len (NcmMSet *mset); const gchar * ncm_mset_fparam_name (NcmMSet *mset,guint n); gdouble ncm_mset_fparam_get_scale (NcmMSet *mset,guint n); gdouble ncm_mset_fparam_get_lower_bound (NcmMSet *mset,guint n); gdouble ncm_mset_fparam_get_upper_bound (NcmMSet *mset,guint n); gdouble ncm_mset_fparam_get_abstol (NcmMSet *mset,guint n); gdouble ncm_mset_fparam_get (NcmMSet *mset,guint n); void ncm_mset_fparam_set (NcmMSet *mset,guint n,const gdouble x); NcmMSetPIndex * ncm_mset_fparam_get_pi (NcmMSet *mset,guint n); gint ncm_mset_fparam_get_fpi (NcmMSet *mset,NcmModelID mid,guint pid); void ncm_mset_save (NcmMSet *mset,gchar *filename,gboolean save_comment); NcmMSet * ncm_mset_load (gchar *filename);
Details
ncm_mset_model_register_id ()
void ncm_mset_model_register_id (NcmModelClass *model_class,gchar *ns,gchar *desc,gchar *long_desc);
FIXME
|
FIXME |
|
Model namespace. |
|
Short description. |
|
Long description. |
NCM_MSET_MODEL_ID_FUNC()
#define NCM_MSET_MODEL_ID_FUNC(model_ns) model_ns##_id
FIXME
|
FIXME |
NCM_MSET_MODEL_DECLARE_ID()
#define NCM_MSET_MODEL_DECLARE_ID(model_ns) gint32 NCM_MSET_MODEL_ID_FUNC(model_ns) (void) G_GNUC_CONST
FIXME
|
FIXME |
NCM_MSET_MODEL_REGISTER_ID()
#define NCM_MSET_MODEL_REGISTER_ID(model_ns,typemacro)
FIXME
|
FIXME |
|
FIXME |
ncm_mset_pindex_new ()
NcmMSetPIndex * ncm_mset_pindex_new (NcmModelID mid,guint pid);
FIXME
|
FIXME |
|
FIXME |
Returns : |
FIXME |
ncm_mset_pindex_dup ()
NcmMSetPIndex * ncm_mset_pindex_dup (NcmMSetPIndex *pi);
FIXME
|
FIXME |
Returns : |
FIXME |
ncm_mset_new ()
NcmMSet * ncm_mset_new (NcmModel *model0,...);
FIXME
|
FIXME |
|
FIXME |
Returns : |
FIXME |
ncm_mset_newv ()
NcmMSet * ncm_mset_newv (NcmModel *model0,va_list ap);
FIXME
|
FIXME |
|
FIXME |
Returns : |
FIXME. [transfer full] |
ncm_mset_peek ()
NcmModel * ncm_mset_peek (NcmMSet *mset,NcmModelID mid);
FIXME
|
a NcmMSet. |
|
a NcmModelID. |
Returns : |
FIXME. [transfer none] |
ncm_mset_get ()
NcmModel * ncm_mset_get (NcmMSet *mset,NcmModelID mid);
FIXME
|
a NcmMSet. |
|
a NcmModelID. |
Returns : |
FIXME. [transfer full] |
ncm_mset_remove ()
void ncm_mset_remove (NcmMSet *mset,NcmModelID mid);
FIXME
|
a NcmMSet. |
|
a NcmModelID. |
ncm_mset_set ()
void ncm_mset_set (NcmMSet *mset,NcmModel *model);
FIXME
|
FIXME |
|
FIXME |
ncm_mset_exists ()
gboolean ncm_mset_exists (NcmMSet *mset,NcmModel *model);
FIXME
|
FIXME |
|
FIXME |
Returns : |
FIXME |
ncm_mset_fparam_len ()
guint ncm_mset_fparam_len (NcmMSet *mset);
FIXME
|
FIXME |
Returns : |
FIXME |
ncm_mset_max_param_name ()
guint ncm_mset_max_param_name (NcmMSet *mset);
FIXME
|
FIXME |
Returns : |
FIXME |
ncm_mset_max_fparam_name ()
guint ncm_mset_max_fparam_name (NcmMSet *mset);
FIXME
|
FIXME |
Returns : |
FIXME |
ncm_mset_max_model_nick ()
guint ncm_mset_max_model_nick (NcmMSet *mset);
FIXME
|
FIXME |
Returns : |
FIXME |
ncm_mset_params_pretty_print ()
void ncm_mset_params_pretty_print (NcmMSet *mset,FILE *out,gchar *header);
This function print the command line (first line, commented), the model nick and parameters' names (second line, commented) and their values indicating if they are fixed or free.
|
a NcmMSet |
|
name of the file |
|
pointer to the command line |
ncm_mset_params_print_vals ()
void ncm_mset_params_print_vals (NcmMSet *mset,FILE *out);
FIXME
|
FIXME |
|
FIXME |
ncm_mset_params_valid ()
gboolean ncm_mset_params_valid (NcmMSet *mset);
FIXME
|
FIXME |
Returns : |
FIXME |
ncm_mset_cmp ()
gboolean ncm_mset_cmp (NcmMSet *mset0,NcmMSet *mset1,gboolean cmp_model);
Compares mset0 and mset1 and returns TRUE if both coitains the same models.
If cmp_model is TRUE compare also if the models are the same.
|
FIXME |
|
FIXME |
|
FIXME |
Returns : |
FIXME |
ncm_mset_param_set ()
void ncm_mset_param_set (NcmMSet *mset,NcmModelID mid,guint pid,const gdouble x);
FIXME
|
a NcmMSet |
|
FIXME |
|
FIXME |
|
FIXME |
ncm_mset_param_get ()
gdouble ncm_mset_param_get (NcmMSet *mset,NcmModelID mid,guint pid);
FIXME
|
a NcmMSet |
|
FIXME |
|
FIXME |
Returns : |
FIXME |
ncm_mset_orig_param_get ()
gdouble ncm_mset_orig_param_get (NcmMSet *mset,NcmModelID mid,guint pid);
FIXME
|
a NcmMSet |
|
FIXME |
|
FIXME |
Returns : |
FIXME |
ncm_mset_param_name ()
const gchar * ncm_mset_param_name (NcmMSet *mset,NcmModelID mid,guint pid);
FIXME
|
a NcmMSet |
|
FIXME |
|
FIXME |
Returns : |
FIXME |
ncm_mset_param_set_ftype ()
void ncm_mset_param_set_ftype (NcmMSet *mset,NcmModelID mid,guint pid,NcmParamType ftype);
FIXME
|
a NcmMSet |
|
FIXME |
|
FIXME |
|
FIXME |
ncm_mset_param_set_all_ftype ()
void ncm_mset_param_set_all_ftype (NcmMSet *mset,NcmParamType ftype);
FIXME
|
a NcmMSet |
|
FIXME |
ncm_mset_param_set_vector ()
void ncm_mset_param_set_vector (NcmMSet *mset,NcmVector *params);
Set the models parameters using values from params.
|
a NcmMSet |
|
FIXME |
ncm_mset_param_get_vector ()
void ncm_mset_param_get_vector (NcmMSet *mset,NcmVector *params);
Set the compontents of params using the models parameters.
|
a NcmMSet |
|
FIXME |
ncm_mset_param_get_scale ()
gdouble ncm_mset_param_get_scale (NcmMSet *mset,NcmModelID mid,guint pid);
FIXME
|
a NcmMSet |
|
FIXME |
|
FIXME |
Returns : |
FIXME |
ncm_mset_param_get_lower_bound ()
gdouble ncm_mset_param_get_lower_bound (NcmMSet *mset,NcmModelID mid,guint pid);
FIXME
|
a NcmMSet |
|
FIXME |
|
FIXME |
Returns : |
FIXME |
ncm_mset_param_get_upper_bound ()
gdouble ncm_mset_param_get_upper_bound (NcmMSet *mset,NcmModelID mid,guint pid);
FIXME
|
a NcmMSet |
|
FIXME |
|
FIXME |
Returns : |
FIXME |
ncm_mset_param_get_abstol ()
gdouble ncm_mset_param_get_abstol (NcmMSet *mset,NcmModelID mid,guint pid);
FIXME
|
a NcmMSet |
|
FIXME |
|
FIXME |
Returns : |
FIXME |
ncm_mset_param_get_ftype ()
NcmParamType ncm_mset_param_get_ftype (NcmMSet *mset,NcmModelID mid,guint pid);
FIXME
|
a NcmMSet. |
|
a NcmModelID. |
|
FIXME |
Returns : |
FIXME |
ncm_mset_param_set_pi ()
void ncm_mset_param_set_pi (NcmMSet *mset,NcmMSetPIndex *pi,const gdouble *x,guint n);
FIXME
|
a NcmMSet |
|
FIXME |
|
FIXME |
|
FIXME |
ncm_mset_param_get_pi ()
void ncm_mset_param_get_pi (NcmMSet *mset,NcmMSetPIndex *pi,gdouble *x,guint n);
FIXME
|
a NcmMSet |
|
FIXME |
|
FIXME |
|
FIXME |
ncm_mset_fparams_get_vector ()
void ncm_mset_fparams_get_vector (NcmMSet *mset,NcmVector *x);
FIXME
|
a NcmMSet |
|
FIXME |
ncm_mset_fparams_set_vector ()
void ncm_mset_fparams_set_vector (NcmMSet *mset,const NcmVector *x);
FIXME
|
a NcmMSet |
|
FIXME |
ncm_mset_fparams_set_array ()
void ncm_mset_fparams_set_array (NcmMSet *mset,const gdouble *x);
FIXME
|
a NcmMSet |
|
FIXME |
ncm_mset_fparams_set_gsl_vector ()
void ncm_mset_fparams_set_gsl_vector (NcmMSet *mset,const gsl_vector *x);
FIXME
|
a NcmMSet. |
|
FIXME |
ncm_mset_fparams_len ()
guint ncm_mset_fparams_len (NcmMSet *mset);
FIXME
|
a NcmMSet |
Returns : |
FIXME |
ncm_mset_fparam_name ()
const gchar * ncm_mset_fparam_name (NcmMSet *mset,guint n);
FIXME
|
a NcmMSet |
|
FIXME |
Returns : |
FIXME |
ncm_mset_fparam_get_scale ()
gdouble ncm_mset_fparam_get_scale (NcmMSet *mset,guint n);
FIXME
|
a NcmMSet |
|
FIXME |
Returns : |
FIXME |
ncm_mset_fparam_get_lower_bound ()
gdouble ncm_mset_fparam_get_lower_bound (NcmMSet *mset,guint n);
FIXME
|
a NcmMSet |
|
FIXME |
Returns : |
FIXME |
ncm_mset_fparam_get_upper_bound ()
gdouble ncm_mset_fparam_get_upper_bound (NcmMSet *mset,guint n);
FIXME
|
a NcmMSet |
|
FIXME |
Returns : |
FIXME |
ncm_mset_fparam_get_abstol ()
gdouble ncm_mset_fparam_get_abstol (NcmMSet *mset,guint n);
FIXME
|
a NcmMSet |
|
FIXME |
Returns : |
FIXME |
ncm_mset_fparam_get ()
gdouble ncm_mset_fparam_get (NcmMSet *mset,guint n);
FIXME
|
a NcmMSet |
|
FIXME |
Returns : |
FIXME |
ncm_mset_fparam_set ()
void ncm_mset_fparam_set (NcmMSet *mset,guint n,const gdouble x);
FIXME
|
a NcmMSet |
|
FIXME |
|
FIXME |
ncm_mset_fparam_get_pi ()
NcmMSetPIndex * ncm_mset_fparam_get_pi (NcmMSet *mset,guint n);
FIXME
|
a NcmMSet |
|
FIXME |
Returns : |
FIXME |
ncm_mset_fparam_get_fpi ()
gint ncm_mset_fparam_get_fpi (NcmMSet *mset,NcmModelID mid,guint pid);
FIXME
|
a NcmMSet. |
|
a NcmModelID. |
|
FIXME |
Returns : |
FIXME |
ncm_mset_save ()
void ncm_mset_save (NcmMSet *mset,gchar *filename,gboolean save_comment);
FIXME
|
FIXME |
|
FIXME |
|
FIXME |