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:
NcmMSetA
NcmMSet.The data is owned by the caller of the method. x-
Type: An array of
gdoubleFunction arguments.
The data is owned by the caller of the method. out-
Type:
NcmVectorFunction 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.