cloudy  trunk
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Functions
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

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.

Referenced by spline_cubic_set().

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

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

Definition at line 430 of file thirdparty_interpolate.cpp.

References DEBUG_ENTRY.

Referenced by t_gaunt::gauntff(), TempInterp(), and TempInterp2().

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 453 of file thirdparty_interpolate.cpp.

References ASSERT, DEBUG_ENTRY, and hunt_bisect().

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

Here is the call graph for this function:

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, fprintf(), and ioQQQ.

Referenced by spline().

Here is the call graph for this function:

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 328 of file thirdparty_interpolate.cpp.

References DEBUG_ENTRY, and hunt_bisect().

Referenced by spldrv(), and splint().

Here is the call graph for this function: