NcPowspecMLSpline

NcPowspecMLSpline — Class for linear matter power spectrum from a 1d-spline.

Stability Level

Stable, unless otherwise indicated

Functions

Properties

NcmSpline * spline Read / Write / Construct

Types and Values

Object Hierarchy

    GObject
    ╰── NcmPowspec
        ╰── NcPowspecML
            ╰── NcPowspecMLSpline

Includes

#include <numcosmo/nc_powspec_ml_spline.h>

Description

Provides a linear matter power spectrum as a function of mode $k$ at a redshift $z_0$ computing a spline, whose knots and the respective $P(k, z = z_0)$ values are provided in a file. The time evolution of the power spectrum is computed using the growth function.

Functions

nc_powspec_ml_spline_new ()

NcPowspecMLSpline *
nc_powspec_ml_spline_new (NcmSpline *Pk);

Creates a new NcPowspecMLSpline from a spline Pk of the power spectrum, $P(k, z=z_0)$ at a given redshift $z_0$.

Parameters

Pk

a NcmSpline

 

Returns

the newly created NcPowspecMLSpline.

[transfer full]


nc_powspec_ml_spline_set_spline ()

void
nc_powspec_ml_spline_set_spline (NcPowspecMLSpline *ps_fs,
                                 NcmSpline *Pk);

Attributes a spline of the power spectrum at a redshift $z_0$, P(k, z_0), from Pk .

Parameters

ps_fs

a NcPowspecMLSpline

 

Pk

a NcmSpline

 

nc_powspec_ml_spline_peek_spline ()

NcmSpline *
nc_powspec_ml_spline_peek_spline (NcPowspecMLSpline *ps_fs);

Parameters

ps_fs

a NcPowspecMLSpline

 

Returns

the spline of the power spectrum at a redshift $z_0$, P(k, z_0).

[transfer none]

Types and Values

NC_TYPE_POWSPEC_ML_SPLINE

#define NC_TYPE_POWSPEC_ML_SPLINE (nc_powspec_ml_spline_get_type ())

NcPowspecMLSpline

typedef struct _NcPowspecMLSpline NcPowspecMLSpline;

Property Details

The “spline” property

  “spline”                   NcmSpline *

Spline representing Pk at z=0.

Owner: NcPowspecMLSpline

Flags: Read / Write / Construct