NcmSplineCubicD2

NcmSplineCubicD2 — Cubic spline implementation given second derivatives.

Stability Level

Stable, unless otherwise indicated

Functions

Types and Values

Object Hierarchy

    GObject
    ╰── NcmSpline
        ╰── NcmSplineCubic
            ╰── NcmSplineCubicD2

Includes

#include <numcosmo/math/ncm_spline_cubic_d2.h>

Description

This object implements the necessary functions to compute a cubic spline with where the user provides the second derivatives of the function.

Functions

ncm_spline_cubic_d2_new ()

NcmSplineCubicD2 *
ncm_spline_cubic_d2_new (NcmVector *xv,
                         NcmVector *yv,
                         NcmVector *d2yv,
                         gboolean init);

This function returns a new NcmSpline setting all its members. It makes a copy of the d2yv vector and saves it internally.

Parameters

xv

NcmVector of knots

 

yv

NcmVector of the values of the function to be interpolated, computed at xv

 

d2yv

NcmVector of the values of the second derivative of the function to be interpolated, computed at xv

 

init

TRUE to prepare the new NcmSpline or FALSE to not prepare it

 

Returns

a new NcmSpline.

Types and Values

NCM_TYPE_SPLINE_CUBIC_D2

#define NCM_TYPE_SPLINE_CUBIC_D2 (ncm_spline_cubic_d2_get_type ())

NcmSplineCubicD2

typedef struct _NcmSplineCubicD2 NcmSplineCubicD2;