Top | ![]() |
![]() |
![]() |
![]() |
Functions
NcPowspecMNL * | nc_powspec_mnl_new_from_name () |
NcPowspecMNL * | nc_powspec_mnl_ref () |
void | nc_powspec_mnl_free () |
void | nc_powspec_mnl_clear () |
Description
This module comprises the set of functions to compute a power spectrum and derived quantities.
Functions
nc_powspec_mnl_new_from_name ()
NcPowspecMNL *
nc_powspec_mnl_new_from_name (const gchar *ps_mnl_name
);
This function returns a new NcPowspecMNL whose type is defined by ps_mnl_name
.
nc_powspec_mnl_ref ()
NcPowspecMNL *
nc_powspec_mnl_ref (NcPowspecMNL *ps_mnl
);
Increases the reference count of ps_mnl
by one atomically.
nc_powspec_mnl_free ()
void
nc_powspec_mnl_free (NcPowspecMNL *ps_mnl
);
Atomically decrements the reference count of ps_mnl
by one.
If the reference count drops to 0, all memory allocated by ps_mnl
is released.
nc_powspec_mnl_clear ()
void
nc_powspec_mnl_clear (NcPowspecMNL **ps_mnl
);
If ps_mnl
is different from NULL,
atomically decrements the reference count of ps_mnl
by one.
If the reference count drops to 0,
all memory allocated by ps_mnl
is released and ps_mnl
is set to NULL.