JDFTx  1.4.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Spline.h File Reference

Spline interpolation routines. More...

#include <core/scalar.h>
#include <cstdio>

Namespaces

 QuinticSpline
 C4-continuous interpolation using quintic splines.
 

Functions

std::vector< double > QuinticSpline::getCoeff (const std::vector< double > &samples, bool oddExtension=false)
 Generate quintic spline coefficients for a set of uniformly-spaced samples. More...
 
__hostanddev__ double QuinticSpline::value (const double *coeff, double x)
 Compute value of quintic spline. Warning: x is not range-checked. More...
 
__hostanddev__ double QuinticSpline::deriv (const double *coeff, double x)
 Compute derivative (w.r.t x) of quintic spline. Warning: x is not range-checked. More...
 
__hostanddev__ void QuinticSpline::valueGrad (double E_value, double *E_coeff, double x)
 Gradient propagation corresponding to value() More...
 

Detailed Description

Spline interpolation routines.