Function

NumCosmoMathintegral_get_workspace

Declaration [src]

gint**
ncm_integral_get_workspace (
  void
)

Description [src]

This function provides a workspace to be used by numerical integration functions of GSL. It keeps a internal pool of workspaces and allocate a new one if the function is called and the pool is empty. It is designed to be used in a multi-thread environment. The workspace must be unlocked in order to return to the pool. This must be done using the #ncm_memory_pool_return.

This function is not directly available to language bindings.

Return value

Type: gint**

A pointer to #gsl_integration_workspace structure.

The data is owned by the called function.