cloudy trunk
Loading...
Searching...
No Matches
thirdparty_interpolate.cpp File Reference
#include "cddefines.h"
#include "thirdparty.h"
Include dependency graph for thirdparty_interpolate.cpp:

Go to the source code of this file.

Functions

STATIC double * d3_np_fs (long n, double a[], const double b[], double x[])
void spline_cubic_set (long n, const double t[], const double y[], double ypp[], int ibcbeg, double ybcbeg, int ibcend, double ybcend)
void spline_cubic_val (long n, const double t[], double tval, const double y[], const double ypp[], double *yval, double *ypval, double *yppval)
double lagrange (const double x[], const double y[], long n, double xval)
double linint (const double x[], const double y[], long n, double xval)

Function Documentation

◆ d3_np_fs()

STATIC double * d3_np_fs ( long n,
double a[],
const double b[],
double x[] )

Definition at line 20 of file thirdparty_interpolate.cpp.

References DEBUG_ENTRY, and STATIC.

Referenced by spline_cubic_set().

◆ lagrange()

double lagrange ( const double x[],
const double y[],
long n,
double xval )

do lagrange interpolation of order n on x[], y[]

Definition at line 433 of file thirdparty_interpolate.cpp.

References DEBUG_ENTRY.

Referenced by TempInterp(), and TempInterp2().

◆ linint()

double linint ( const double x[],
const double y[],
long n,
double xval )

do linear interpolation on x[], y[]; it is assumed that x[] is strictly monotonically increasing

Definition at line 456 of file thirdparty_interpolate.cpp.

References ASSERT, DEBUG_ENTRY, and hunt_bisect().

Referenced by CHIANTI_Upsilon(), cross_section(), DynaIterStart(), GetHS98CrossSection(), InterpCollRate(), lines_helium(), MolDissocCrossSection(), and StoutCollRate().

Here is the call graph for this function:

◆ spline_cubic_set()

void spline_cubic_set ( long n,
const double t[],
const double y[],
double ypp[],
int ibcbeg,
double ybcbeg,
int ibcend,
double ybcend )

Definition at line 105 of file thirdparty_interpolate.cpp.

References ASSERT, cdEXIT, d3_np_fs(), DEBUG_ENTRY, EXIT_FAILURE, ioQQQ, and MALLOC.

Referenced by spline().

Here is the call graph for this function:

◆ spline_cubic_val()

void spline_cubic_val ( long n,
const double t[],
double tval,
const double y[],
const double ypp[],
double * yval,
double * ypval,
double * yppval )

Definition at line 331 of file thirdparty_interpolate.cpp.

References DEBUG_ENTRY, and hunt_bisect().

Referenced by spldrv(), and splint().

Here is the call graph for this function: