1 /* interpolation/gsl_spline.h
3 * Copyright (C) 2001, 2007 Brian Gough
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 3 of the License, or (at
8 * your option) any later version.
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 #ifndef __GSL_SPLINE_H__
21 #define __GSL_SPLINE_H__
23 #include <gsl/gsl_interp.h>
28 # define __BEGIN_DECLS extern "C" {
29 # define __END_DECLS }
31 # define __BEGIN_DECLS /* empty */
32 # define __END_DECLS /* empty */
38 /* general interpolation object */
47 gsl_spline_alloc(const gsl_interp_type * T, size_t size);
50 gsl_spline_init(gsl_spline * spline, const double xa[], const double ya[], size_t size);
52 const char * gsl_spline_name(const gsl_spline * spline);
53 unsigned int gsl_spline_min_size(const gsl_spline * spline);
57 gsl_spline_eval_e(const gsl_spline * spline, double x,
58 gsl_interp_accel * a, double * y);
61 gsl_spline_eval(const gsl_spline * spline, double x, gsl_interp_accel * a);
64 gsl_spline_eval_deriv_e(const gsl_spline * spline,
70 gsl_spline_eval_deriv(const gsl_spline * spline,
72 gsl_interp_accel * a);
75 gsl_spline_eval_deriv2_e(const gsl_spline * spline,
81 gsl_spline_eval_deriv2(const gsl_spline * spline,
83 gsl_interp_accel * a);
86 gsl_spline_eval_integ_e(const gsl_spline * spline,
88 gsl_interp_accel * acc,
92 gsl_spline_eval_integ(const gsl_spline * spline,
94 gsl_interp_accel * acc);
97 gsl_spline_free(gsl_spline * spline);
101 #endif /* __GSL_INTERP_H__ */