Loading [MathJax]/extensions/TeX/AMSsymbols.js
LALSimulation 6.2.0.1-5e288d3
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
gsl_bspline_basis.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2024 Leo Singer
3 *
4 * Provide a workaround for removal of gsl_bspline_eval_nonzero in GSL 2.8.
5 * The function gsl_bspline_eval_nonzero was replaced with gsl_bspline_basis.
6 * FIXME: remove this file once we require GSL >= 2.8.
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with with program; see the file COPYING. If not, write to the
20 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
21 * MA 02110-1301 USA
22 */
23
24#ifndef _GSL_BPSLINE_BASIS_H
25#define _GSL_BPSLINE_BASIS_H
26
27#include <gsl/gsl_bspline.h>
28#include <gsl/gsl_version.h>
29
30#if GSL_MAJOR_VERSION < 2 || (GSL_MAJOR_VERSION == 2 && GSL_MINOR_VERSION < 8)
31static int gsl_bspline_basis(const double x, gsl_vector *Bk, size_t *istart, gsl_bspline_workspace *w) {
32 size_t iend;
33 return gsl_bspline_eval_nonzero(x, Bk, istart, &iend, w);
34}
35#endif
36
37#endif
const double w
static int gsl_bspline_basis(const double x, gsl_vector *Bk, size_t *istart, gsl_bspline_workspace *w)
x