/usr/include/libgoffice-0.10/goffice/math/go-cspline.h is in libgoffice-0.10-dev 0.10.18-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 | /*
* go-cspline.h
*
* Copyright (C) 2007-2008 Jean Brefort (jean.brefort@normalesup.org)
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
* USA
*/
#ifndef GO_CSPLINE_H
#define GO_CSPLINE_H
#include <glib-object.h>
G_BEGIN_DECLS
typedef struct _GOCSpline GOCSpline;
struct _GOCSpline {
double const *x, *y;
double *a, *b, *c;
int n;
unsigned ref_count;
};
typedef enum {
GO_CSPLINE_NATURAL,
GO_CSPLINE_PARABOLIC,
GO_CSPLINE_CUBIC,
GO_CSPLINE_CLAMPED,
/* <private> */
GO_CSPLINE_MAX
} GOCSplineType;
GType go_cspline_get_type (void);
GOCSpline *go_cspline_init (double const *x, double const *y, int n,
unsigned limits, double c0, double cn);
void go_cspline_destroy (GOCSpline *sp);
double go_cspline_get_value (GOCSpline const *sp, double x);
double go_cspline_get_deriv (GOCSpline const *sp, double x);
double *go_cspline_get_values (GOCSpline const *sp, double const *x, int n);
double *go_cspline_get_derivs (GOCSpline const *sp, double const *x, int n);
double *go_cspline_get_integrals (GOCSpline const *sp, double const *x, int n);
#ifdef GOFFICE_WITH_LONG_DOUBLE
typedef struct _GOCSplinel GOCSplinel;
struct _GOCSplinel {
long double const *x, *y;
long double *a, *b, *c;
int n;
unsigned ref_count;
};
GType go_csplinel_get_type (void);
GOCSplinel *go_cspline_initl (long double const *x, long double const *y, int n,
unsigned limits, long double a0, long double a1);
void go_cspline_destroyl (GOCSplinel *sp);
long double go_cspline_get_valuel (GOCSplinel const *sp, long double x);
long double go_cspline_get_derivl (GOCSplinel const *sp, long double x);
long double *go_cspline_get_valuesl (GOCSplinel const *sp, long double const *x, int n);
long double *go_cspline_get_derivsl (GOCSplinel const *sp, long double const *x, int n);
long double *go_cspline_get_integralsl (GOCSplinel const *sp, long double const *x, int n);
#endif
G_END_DECLS
#endif
|