Method

NumCosmoMathFunctionCacheinsert_vector

Declaration [src]

void
ncm_function_cache_insert_vector (
  NcmFunctionCache* cache,
  gdouble x,
  NcmVector* p
)

Description [src]

Adds $f(x)$ to cache, holding a reference to p. Does nothing if $x$ is already cached. The length of p must be the function dimension.

Parameters

x

Type: gdouble

The argument $x$.

p

Type: NcmVector

The function value $f(x)$.

The data is owned by the caller of the method.