NcPowspecML

NcPowspecML — Abstrac class for linear matter power spectrum implementation.

Stability Level

Stable, unless otherwise indicated

Object Hierarchy

    GObject
    ╰── NcmPowspec
        ╰── NcPowspecML
            ├── NcPowspecMLCBE
            ├── NcPowspecMLFixSpline
            ╰── NcPowspecMLTransfer

Includes

#include <numcosmo/nc_powspec_ml.h>

Description

This module comprises the set of functions to compute the linear matter power spectrum and derived quantities.

Following the description presented in NcmPowspec, in this case we have that the field $\delta(\vec{x})$ represents the matter density fluctuations, i.e., $$\delta(\vec{x}) = \frac{\rho(\vec{x}) - \bar{\rho}}{\bar{\rho}},$$ where $\rho$ is the cold matter density field and $\bar{\rho}$ its mean.

Functions

nc_powspec_ml_new_from_name ()

NcPowspecML *
nc_powspec_ml_new_from_name (const gchar *ps_ml_name);

This function returns a new NcPowspecML whose type is defined by ps_ml_name .

Parameters

ps_ml_name

string which specifies the linear matter power spectrum object to be used

 

Returns

A new NcPowspecML.


nc_powspec_ml_ref ()

NcPowspecML *
nc_powspec_ml_ref (NcPowspecML *ps_ml);

Increases the reference count of ps_ml by one atomically.

Parameters

ps_ml

a NcPowspecML

 

Returns

ps_ml .

[transfer full]


nc_powspec_ml_free ()

void
nc_powspec_ml_free (NcPowspecML *ps_ml);

Atomically decrements the reference count of ps_ml by one. If the reference count drops to 0, all memory allocated by ps_ml is released.

Parameters

ps_ml

a NcPowspecML

 

nc_powspec_ml_clear ()

void
nc_powspec_ml_clear (NcPowspecML **ps_ml);

If ps_ml is different from NULL, atomically decrements the reference count of ps_ml by one. If the reference count drops to 0, all memory allocated by ps_ml is released and ps_ml is set to NULL.

Parameters

ps_ml

a NcPowspecML