1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/* ----------------------------------------------------------------------
LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
http://lammps.sandia.gov, Sandia National Laboratories
Steve Plimpton, sjplimp@sandia.gov
Copyright (2003) Sandia Corporation. Under the terms of Contract
DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains
certain rights in this software. This software is distributed under
the GNU General Public License.
See the README file in the top-level LAMMPS directory.
------------------------------------------------------------------------- */
/* ----------------------------------------------------------------------
This file is part of the MGPT implementation. See further comments
in pair_mgpt.cpp and pair_mgpt.h.
------------------------------------------------------------------------- */
/*
Given a table of ntab data points tab, assumed to be sampled
on an equidistant grid, compute coefficients of interpolating
cubic polynimials, one per interval (i.e. ntab-1 polynomials).
Input point i is located at tab[i*stride].
Coefficients of output polynomial j are at C[j][0..3];
The piecewise polynimials form a C^2 function which
approximates the input function to fourth order.
The computational cost of this routine is O(ntab).
*/
void ;
/*
Evaluate the spline function with coefficients in C (as returned
by makespline()) in point x.
x0 and x1 are the end points of the x points corresponding to
original input interval tab of makespline(). n is ntab-1.
The output is the value (y) of the interpolating spline, and the
first (dy) and second (d2y) dervatives.
The computational cost of this routine is O(1).
*/
void ;
/* Evaluate cubic polynomial represented by p in point x.
The first and second derivatives are also returned.
This can be used to evaluate one of the sub-polynomials
in a spline. */
void ;