Top | ![]() |
![]() |
![]() |
![]() |
Functions
gdouble | (*NcmOdeSplineDydx) () |
NcmOdeSpline * | ncm_ode_spline_new () |
NcmOdeSpline * | ncm_ode_spline_new_full () |
void | ncm_ode_spline_prepare () |
void | ncm_ode_spline_free () |
void | ncm_ode_spline_clear () |
void | ncm_ode_spline_set_interval () |
void | ncm_ode_spline_set_reltol () |
void | ncm_ode_spline_set_abstol () |
void | ncm_ode_spline_set_xi () |
void | ncm_ode_spline_set_xf () |
void | ncm_ode_spline_set_yi () |
void | ncm_ode_spline_set_yf () |
void | ncm_ode_spline_auto_abstol () |
void | ncm_ode_spline_set_ini_step () |
gdouble | ncm_ode_spline_get_ini_step () |
NcmSpline * | ncm_ode_spline_peek_spline () |
Properties
gdouble | abs | Read / Write / Construct |
gboolean | auto-abstol | Read / Write / Construct |
gpointer | dydx | Read / Write / Construct Only |
gdouble | ini-step | Read / Write / Construct |
gdouble | reltol | Read / Write / Construct |
NcmSpline * | spline | Read / Write |
gboolean | stop-hnil | Read / Write / Construct |
gdouble | xf | Read / Write |
gdouble | xi | Read / Write |
gdouble | yf | Read / Write |
gdouble | yi | Read / Write |
Types and Values
#define | NCM_ODE_SPLINE_DEFAULT_RELTOL |
#define | NCM_ODE_SPLINE_DEFAULT_ABSTOL |
#define | NCM_ODE_SPLINE_MIN_STEP |
Functions
ncm_ode_spline_new ()
NcmOdeSpline * ncm_ode_spline_new (NcmSpline *s
,NcmOdeSplineDydx dydx
);
FIXME
ncm_ode_spline_new_full ()
NcmOdeSpline * ncm_ode_spline_new_full (NcmSpline *s
,NcmOdeSplineDydx dydx
,gdouble yi
,gdouble xi
,gdouble xf
);
FIXME
ncm_ode_spline_set_interval ()
void ncm_ode_spline_set_interval (NcmOdeSpline *os
,gdouble yi
,gdouble xi
,gdouble xf
);
FIXME
ncm_ode_spline_set_reltol ()
void ncm_ode_spline_set_reltol (NcmOdeSpline *os
,gdouble reltol
);
FIXME
ncm_ode_spline_set_abstol ()
void ncm_ode_spline_set_abstol (NcmOdeSpline *os
,gdouble abstol
);
FIXME
ncm_ode_spline_auto_abstol ()
void ncm_ode_spline_auto_abstol (NcmOdeSpline *os
,gboolean on
);
If on
is TRUE, the object uses the value of $\mathrm{d}y_i$ to estimate the
abstol as $T_\mathrm{abs} = \dot{y}_i \mathrm{d}t_m T_\mathrm{rel}$,
where $T_\mathrm{rel}$ is the relative tolerance and $\mathrm{d}t_m$ is the
minimum time step NCM_ODE_SPLINE_MIN_STEP. Useful when computing integrals as ODEs.
ncm_ode_spline_set_ini_step ()
void ncm_ode_spline_set_ini_step (NcmOdeSpline *os
,gdouble ini_step
);
Sets a guess for the initial step size. If ini_step
is
zero it uses the automatic determination based on the
tolerances.
ncm_ode_spline_get_ini_step ()
gdouble
ncm_ode_spline_get_ini_step (NcmOdeSpline *os
);
Gets the current guess for the initial step size.
ncm_ode_spline_peek_spline ()
NcmSpline *
ncm_ode_spline_peek_spline (NcmOdeSpline *os
);
Peeks at the last prepared spline.
Property Details
The “abs”
property
“abs” gdouble
Absolute tolerance.
Owner: NcmOdeSpline
Flags: Read / Write / Construct
Allowed values: [0,1]
Default value: 0
The “auto-abstol”
property
“auto-abstol” gboolean
Automatic abstol.
Owner: NcmOdeSpline
Flags: Read / Write / Construct
Default value: FALSE
The “dydx”
property
“dydx” gpointer
Pointer to the dydx function.
Owner: NcmOdeSpline
Flags: Read / Write / Construct Only
The “ini-step”
property
“ini-step” gdouble
Integration initial step size.
Owner: NcmOdeSpline
Flags: Read / Write / Construct
Allowed values: >= 0
Default value: 0
The “reltol”
property
“reltol” gdouble
Relative tolerance.
Owner: NcmOdeSpline
Flags: Read / Write / Construct
Allowed values: [0,1]
Default value: 1e-13
The “spline”
property
“spline” NcmSpline *
Spline algorithm to be used.
Owner: NcmOdeSpline
Flags: Read / Write
The “stop-hnil”
property
“stop-hnil” gboolean
Whether treat hnil as error.
Owner: NcmOdeSpline
Flags: Read / Write / Construct
Default value: TRUE
The “xf”
property
“xf” gdouble
Final point.
Owner: NcmOdeSpline
Flags: Read / Write
Default value: 0
The “xi”
property
“xi” gdouble
Initial point.
Owner: NcmOdeSpline
Flags: Read / Write
Default value: 0
The “yf”
property
“yf” gdouble
Final Value.
Owner: NcmOdeSpline
Flags: Read / Write
Default value: 0
The “yi”
property
“yi” gdouble
Initial Value.
Owner: NcmOdeSpline
Flags: Read / Write
Default value: 0