Class

NumCosmoMathFunctionCache

Description [src]

final class NumCosmoMath.FunctionCache : GObject.Object
{
  /* No available fields */
}

A generic cache for functions values.

A simple cache that saves function values at different argument values. It can be used to find an already computed value or the value of the function closest to an already computed point.

Ancestors

Constructors

ncm_function_cache_new

Creates a new NcmFunctionCache for a n dimensional function. The points are considered the same within the tolerance described by abstol and reltol.

Functions

ncm_function_cache_clear

Decrease the reference count of cache by one, and sets the pointer *cache to NULL.

Instance methods

ncm_function_cache_empty_cache

Empties the content of cache.

ncm_function_cache_free

Decrease the reference count of cache by one.

ncm_function_cache_get

Searches the cache and returns the value of the function at $x$.

ncm_function_cache_get_abstol
No description available.

ncm_function_cache_get_near

Searches the cache and returns the value of the function closest to $x$, $x_c$.

ncm_function_cache_get_reltol
No description available.

ncm_function_cache_insert

Insert a new point in the cache.

ncm_function_cache_insert_vector

Insert a new point in the cache.

ncm_function_cache_ref

Increase the reference of cache by one.

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Properties

NumCosmoMath.FunctionCache:abstol
No description available.

NumCosmoMath.FunctionCache:dimension
No description available.

NumCosmoMath.FunctionCache:reltol
No description available.

Signals

Signals inherited from GObject (1)
GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

Class structure

struct NumCosmoMathFunctionCacheClass {
  GObjectClass parent_class;
  
}

No description available.

Class members
parent_class: GObjectClass

No description available.