NcmPowspecSpline2d

NcmPowspecSpline2d — Power spectrum implementation using a 2D spline

Stability Level

Stable, unless otherwise indicated

Functions

Properties

NcmSpline2d * spline2d Read / Write / Construct

Types and Values

Object Hierarchy

    GObject
    ╰── NcmPowspec
        ╰── NcmPowspecSpline2d

Includes

#include <numcosmo/math/ncm_powspec_spline2d.h>

Description

NcmPowspecSpline2d is a power spectrum implementation using a 2D spline.

Functions

ncm_powspec_spline2d_new ()

NcmPowspecSpline2d *
ncm_powspec_spline2d_new (NcmSpline2d *spline2d);

ncm_powspec_spline2d_ref ()

NcmPowspecSpline2d *
ncm_powspec_spline2d_ref (NcmPowspecSpline2d *ps_s2d);

Increases the reference count of ps_s2d by one atomically.

Parameters

ps_s2d

a NcmPowspecSpline2d

 

Returns

ps_s2d .

[transfer full]


ncm_powspec_spline2d_free ()

void
ncm_powspec_spline2d_free (NcmPowspecSpline2d *ps_s2d);

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

Parameters

ps_s2d

a NcmPowspecSpline2d

 

ncm_powspec_spline2d_clear ()

void
ncm_powspec_spline2d_clear (NcmPowspecSpline2d **ps_s2d);

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

Parameters

ps_s2d

a NcmPowspecSpline2d

 

ncm_powspec_spline2d_set_spline2d ()

void
ncm_powspec_spline2d_set_spline2d (NcmPowspecSpline2d *ps_s2d,
                                   NcmSpline2d *spline2d);

Sets the NcmSpline2d to spline2d .

Parameters

ps_s2d

a NcmPowspecSpline2d

 

spline2d

a NcmSpline2d

 

ncm_powspec_spline2d_peek_spline2d ()

NcmSpline2d *
ncm_powspec_spline2d_peek_spline2d (NcmPowspecSpline2d *ps_s2d);

Peeks the current NcmSpline2d.

Parameters

ps_s2d

a NcmPowspecSpline2d

 

Returns

the current NcmSpline2d.

[transfer none]

Types and Values

NCM_TYPE_POWSPEC_SPLINE2D

#define NCM_TYPE_POWSPEC_SPLINE2D (ncm_powspec_spline2d_get_type ())

NcmPowspecSpline2d

typedef struct _NcmPowspecSpline2d NcmPowspecSpline2d;

Property Details

The “spline2d” property

  “spline2d”                 NcmSpline2d *

Spline2d representing the values of the power-spectrum.

Owner: NcmPowspecSpline2d

Flags: Read / Write / Construct