-
Notifications
You must be signed in to change notification settings - Fork 38
/
gsl_interp.pxd
106 lines (69 loc) · 3.84 KB
/
gsl_interp.pxd
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
cdef extern from "gsl/gsl_interp.h":
ctypedef struct gsl_interp_accel
ctypedef struct gsl_interp_type
ctypedef struct gsl_interp
gsl_interp_type * gsl_interp_linear
gsl_interp_type * gsl_interp_polynomial
gsl_interp_type * gsl_interp_cspline
gsl_interp_type * gsl_interp_cspline_periodic
gsl_interp_type * gsl_interp_akima
gsl_interp_type * gsl_interp_akima_periodic
gsl_interp_accel * gsl_interp_accel_alloc() nogil
size_t gsl_interp_accel_find(gsl_interp_accel * a, double x_array[], size_t size, double x) nogil
int gsl_interp_accel_reset (gsl_interp_accel * a) nogil
void gsl_interp_accel_free(gsl_interp_accel * a) nogil
gsl_interp * gsl_interp_alloc( gsl_interp_type * T, size_t n) nogil
int gsl_interp_init(gsl_interp * obj, double xa[], double ya[], size_t size) nogil
char * gsl_interp_name( gsl_interp * interp) nogil
unsigned int gsl_interp_min_size( gsl_interp * interp) nogil
int gsl_interp_eval_e( gsl_interp * obj,
double xa[], double ya[], double x,
gsl_interp_accel * a, double * y) nogil
double gsl_interp_eval( gsl_interp * obj,
double xa[], double ya[], double x,
gsl_interp_accel * a) nogil
int gsl_interp_eval_deriv_e( gsl_interp * obj,
double xa[], double ya[], double x,
gsl_interp_accel * a,
double * d) nogil
double gsl_interp_eval_deriv( gsl_interp * obj,
double xa[], double ya[], double x,
gsl_interp_accel * a) nogil
int gsl_interp_eval_deriv2_e( gsl_interp * obj,
double xa[], double ya[], double x,
gsl_interp_accel * a,
double * d2) nogil
double gsl_interp_eval_deriv2( gsl_interp * obj,
double xa[], double ya[], double x,
gsl_interp_accel * a) nogil
int gsl_interp_eval_integ_e( gsl_interp * obj,
double xa[], double ya[],
double a, double b,
gsl_interp_accel * acc,
double * result) nogil
double gsl_interp_eval_integ( gsl_interp * obj,
double xa[], double ya[],
double a, double b,
gsl_interp_accel * acc) nogil
void gsl_interp_free(gsl_interp * interp) nogil
size_t gsl_interp_bsearch( double x_array[], double x,
size_t index_lo, size_t index_hi) nogil
cdef extern from "gsl/gsl_spline.h":
ctypedef struct gsl_spline
gsl_spline * gsl_spline_alloc( gsl_interp_type * T, size_t size) nogil
int gsl_spline_init(gsl_spline * spline, double xa[], double ya[], size_t size) nogil
int gsl_spline_eval_e( gsl_spline * spline, double x,
gsl_interp_accel * a, double * y) nogil
double gsl_spline_eval( gsl_spline * spline, double x, gsl_interp_accel * a) nogil
int gsl_spline_eval_deriv_e( gsl_spline * spline, double x,
gsl_interp_accel * a, double * y) nogil
double gsl_spline_eval_deriv( gsl_spline * spline, double x, gsl_interp_accel * a) nogil
int gsl_spline_eval_deriv2_e( gsl_spline * spline, double x,
gsl_interp_accel * a, double * y) nogil
double gsl_spline_eval_deriv2( gsl_spline * spline, double x,
gsl_interp_accel * a) nogil
int gsl_spline_eval_integ_e( gsl_spline * spline, double a, double b,
gsl_interp_accel * acc, double * y) nogil
double gsl_spline_eval_integ( gsl_spline * spline, double a, double b,
gsl_interp_accel * acc) nogil
void gsl_spline_free(gsl_spline * spline) nogil