Method

NumCosmoMathDiffrf_Hessian_N_to_1

Declaration [src]

GArray*
ncm_diff_rf_Hessian_N_to_1 (
  NcmDiff* diff,
  GArray* x_a,
  NcmDiffFuncNto1 f,
  gpointer user_data,
  GArray** Eerr
)

Description [src]

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.

Parameters

x_a

Type: An array of double

Function argument.

The data is owned by the caller of the method.
f

Type: NcmDiffFuncNto1

Function to differentiate.

user_data

Type: gpointer

Function user data.

The argument can be NULL.
The data is owned by the caller of the method.
Eerr

Type: An array of double

Estimated errors.

The argument will be set by the function.
The caller of the method takes ownership of the returned data, and is responsible for freeing it.

Return value

Type: An array of double

The Hessian of f at x_a.

The caller of the method takes ownership of the returned data, and is responsible for freeing it.