Class

NumCosmoMathDiff

Description [src]

final class NumCosmoMath.Diff : GObject.Object
{
  /* No available fields */
}

Numerical differentiation object.

Class to perform numerical differentiation.

Ancestors

Constructors

ncm_diff_new

Creates a new NcmDiff object.

Functions

ncm_diff_clear

Decrease the reference count of diff by one, and sets the pointer *diff to NULL.

Instance methods

ncm_diff_free

Decrease the reference count of diff by one.

ncm_diff_get_ini_h

Gets the current initial step used in calculations.

ncm_diff_get_max_order

Gets the maximum order used when calculating the derivatives.

ncm_diff_get_richardson_step

Gets the current Richardson step used in the tables.

ncm_diff_get_round_off_pad

Gets the current round-off padding used in calculations.

ncm_diff_get_trunc_error_pad

Gets the current truncation error padding used in calculations.

ncm_diff_log_backward_tables

Logs all central tables.

ncm_diff_log_central_tables

Logs all central tables.

ncm_diff_log_forward_tables

Logs all central tables.

ncm_diff_rc_d1_1_to_1

Calculates the first derivative of f: $\partial_i f$ using the central method plus Richardson extrapolation. The function $f$ is considered as a $f:\mathbb{R} \to \mathbb{R}$.

ncm_diff_rc_d1_1_to_M

Calculates the first derivative of f: $\partial_i f$ using the central method plus Richardson extrapolation. The function $f$ is considered as a $f:\mathbb{R}^N \to \mathbb{R}$, where $N = $ length of x_a.

ncm_diff_rc_d1_N_to_1

Calculates the first derivative of f: $\partial_i f$ using the central method plus Richardson extrapolation. The function $f$ is considered as a $f:\mathbb{R}^N \to \mathbb{R}$, where $N = $ length of x_a.

ncm_diff_rc_d1_N_to_M

Calculates the first derivative of f: $\partial_i f$ using the central method plus Richardson extrapolation. The function $f$ is considered as a $f:\mathbb{R}^N\to \mathbb{R}^M$, where $N = $ length of x_a and $M = $ dim.

ncm_diff_rc_d2_1_to_1

Calculates the second derivative of f: $\partial_i^2 f$ using the central method plus Richardson extrapolation. The function $f$ is considered as a $f:\mathbb{R} \to \mathbb{R}$.

ncm_diff_rc_d2_1_to_M

Calculates the second derivative of f: $\partial_i^2 f$ using the central method plus Richardson extrapolation. The function $f$ is considered as a $f:\mathbb{R}^N \to \mathbb{R}$, where $N = $ length of x_a.

ncm_diff_rc_d2_N_to_1

Calculates the second derivative of f: $\partial_i^2 f$ using the central method plus Richardson extrapolation. The function $f$ is considered as a $f:\mathbb{R}^N \to \mathbb{R}$, where $N = $ length of x_a.

ncm_diff_rc_d2_N_to_M

Calculates the second derivative of f: $\partial_i^2 f$ using the central method plus Richardson extrapolation. The function $f$ is considered as a $f:\mathbb{R}^N\to \mathbb{R}^M$, where $N = $ length of x_a and $M = $ dim.

ncm_diff_ref

Increase the reference of diff by one.

ncm_diff_rf_Hessian_N_to_1

Calculates the Hessian of f $\partial_i\partial_j f$ using the forward method plus Richardson extrapolation. The function $f$ is considered as a $f:\mathbb{R}^N \to \mathbb{R}$, where $N = $ length of x_a.

ncm_diff_rf_d1_1_to_1

Calculates the first derivative of f: $\partial_i f$ using the forward method plus Richardson extrapolation. The function $f$ is considered as a $f:\mathbb{R} \to \mathbb{R}$.

ncm_diff_rf_d1_1_to_M

Calculates the first derivative of f: $\partial_i f$ using the forward method plus Richardson extrapolation. The function $f$ is considered as a $f:\mathbb{R}^N \to \mathbb{R}$, where $N = $ length of x_a.

ncm_diff_rf_d1_N_to_1

Calculates the first derivative of f: $\partial_i f$ using the forward method plus Richardson extrapolation. The function $f$ is considered as a $f:\mathbb{R}^N \to \mathbb{R}$, where $N = $ length of x_a.

ncm_diff_rf_d1_N_to_M

Calculates the first derivative of f: $\partial_i f$ using the forward method plus Richardson extrapolation. The function $f$ is considered as a $f:\mathbb{R}^N\to \mathbb{R}^M$, where $N = $ length of x_a and $M = $ dim.

ncm_diff_set_ini_h

Sets the initial step used in the calculations.

ncm_diff_set_max_order

Sets the maximum order used when calculating the derivatives to maxorder.

ncm_diff_set_richardson_step

Sets the Richardson step used in the tables.

ncm_diff_set_round_off_pad

Sets the round-off padding used in the calculations.

ncm_diff_set_trunc_error_pad

Sets the truncation error padding used in the calculations.

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Properties

NumCosmoMath.Diff:ini-h
No description available.

NumCosmoMath.Diff:max-order
No description available.

NumCosmoMath.Diff:richardson-step
No description available.

NumCosmoMath.Diff:round-off-pad
No description available.

NumCosmoMath.Diff:terr-pad
No description available.

Signals

Signals inherited from GObject (1)
GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

Class structure

struct NumCosmoMathDiffClass {
  GObjectClass parent_class;
  
}

No description available.

Class members
parent_class: GObjectClass

No description available.