NcmFunctionCache

NcmFunctionCache — A generic cache for functions values

Stability Level

Stable, unless otherwise indicated

Types and Values

Object Hierarchy

    GEnum
    ╰── NcmFunctionCacheSearchType

Includes

#include <numcosmo/math/function_cache.h>

Description

FIXME

Functions

ncm_function_cache_new ()

NcmFunctionCache *
ncm_function_cache_new (guint n,
                        gdouble abstol,
                        gdouble reltol);

FIXME

Parameters

n

FIXME

 

abstol

FIXME

 

reltol

FIXME

 

Returns

FIXME


ncm_function_cache_free ()

void
ncm_function_cache_free (NcmFunctionCache *cache);

FIXME

Parameters

cache

a NcmFunctionCache

 

ncm_function_cache_clear ()

void
ncm_function_cache_clear (NcmFunctionCache **cache);

FIXME

Parameters

cache

a NcmFunctionCache

 

ncm_function_cache_insert ()

void
ncm_function_cache_insert (NcmFunctionCache *cache,
                           gdouble x,
                           ...);

ncm_function_cache_insert_vector ()

void
ncm_function_cache_insert_vector (NcmFunctionCache *cache,
                                  gdouble x,
                                  gsl_vector *p);

FIXME

Parameters

cache

a NcmFunctionCache

 

x

FIXME

 

p

FIXME

 

ncm_function_cache_get ()

gboolean
ncm_function_cache_get (NcmFunctionCache *cache,
                        gdouble *x_ptr,
                        gsl_vector **v);

FIXME

Parameters

cache

a NcmFunctionCache

 

x_ptr

FIXME

 

v

FIXME

 

Returns

FIXME


ncm_function_cache_get_near ()

gboolean
ncm_function_cache_get_near (NcmFunctionCache *cache,
                             gdouble x,
                             gdouble *x_found_ptr,
                             gsl_vector **v,
                             NcmFunctionCacheSearchType type);

Parameters

cache

a NcmFunctionCache

 

x

FIXME

 

x_found_ptr

FIXME

 

v

FIXME

 

type

a NcmFunctionCacheSearchType

 

NC_FUNCTION_CACHE()

#define NC_FUNCTION_CACHE(p) ((NcmFunctionCache *)(p))

Types and Values

enum NcmFunctionCacheSearchType

FIXME

Members

NC_FUNCTION_CACHE_SEARCH_BOTH

FIXME

 

NC_FUNCTION_CACHE_SEARCH_GT

FIXME

 

NC_FUNCTION_CACHE_SEARCH_LT

FIXME

 

struct NcmFunctionCache

struct NcmFunctionCache {
};