NcmODE

NcmODE — Abstract class for ODE solvers

Stability Level

Stable, unless otherwise indicated

Properties

guint sys-size Read / Write / Construct

Object Hierarchy

    GObject
    ╰── NcmODE

Includes

#include <numcosmo/math/ncm_ode.h>

Description

This class determine the methods needed to implement a ordinary differential equation (ODE) solver.

Functions

ncm_ode_ref ()

NcmODE *
ncm_ode_ref (NcmODE *ode);

Increases the reference count of ode by one atomically.

Parameters

ode

a NcmODE

 

Returns

ode .

[transfer full]


ncm_ode_free ()

void
ncm_ode_free (NcmODE *ode);

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

Parameters

ode

a NcmODE

 

ncm_ode_clear ()

void
ncm_ode_clear (NcmODE **ode);

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

Parameters

ode

a NcmODE

 

ncm_ode_set_sys_size ()

void
ncm_ode_set_sys_size (NcmODE *ode,
                      guint sys_size);

Sets the ODE system size to sys_size .

[virtual set_sys_size]

Parameters

ode

a NcmODE

 

sys_size

system size

 

ncm_ode_get_sys_size ()

guint
ncm_ode_get_sys_size (NcmODE *ode);

Gets the current ODE system size.

Parameters

ode

a NcmODE

 

Returns

current ODE system size.

Property Details

The “sys-size” property

  “sys-size”                 guint

The ordinary differential equation (EDO) system size.

Owner: NcmODE

Flags: Read / Write / Construct

Allowed values: >= 1

Default value: 1