Method

NumCosmoMathMSetFuncnumdiff_fparams

Declaration [src]

void
ncm_mset_func_numdiff_fparams (
  NcmMSetFunc* func,
  NcmMSet* mset,
  const gdouble* x,
  NcmVector** out
)

Description [src]

Computes the gradient of func at x and stores the result in out. This function is only valid if func is a scalar function.

Parameters

mset

Type: NcmMSet

A NcmMSet.

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

Type: An array of gdouble

Function arguments.

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

Type: NcmVector

Function gradient.

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.