Debian Codegraph @

libs/image/3rdparty/einspline/nubspline_create.h

raw symbols SCIP
1 /////////////////////////////////////////////////////////////////////////////
2 // einspline: a library for creating and evaluating B-splines //
3 // Copyright (C) 2007 Kenneth P. Esler, Jr. //
4 // //
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 2 of the License, or //
8 // (at your option) any later version. //
9 // //
10 // This program is distributed in the hope that it will be useful, //
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of //
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
13 // GNU General Public License for more details. //
14 // //
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, //
18 // Boston, MA 02110-1301 USA //
19 /////////////////////////////////////////////////////////////////////////////
20
21 #ifndef NUBSPLINE_CREATE_H
22 #define NUBSPLINE_CREATE_H
23
24 #include "nubspline_structs.h"
25
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29
30 NUgrid*
31 create_center_grid (double start, double end, double ratio, int num_points);
32
33 NUgrid*
34 create_general_grid (double *points, int num_points);
35
36 ////////////////////////////////////////////////////////////
37 ////////////////////////////////////////////////////////////
38 //// Nonuniform spline creation routines ////
39 ////////////////////////////////////////////////////////////
40 ////////////////////////////////////////////////////////////
41
42 ////////////////////////////////////////
43 // Nonuniform, single precision, real //
44 ////////////////////////////////////////
45 NUBspline_1d_s *
46 create_NUBspline_1d_s (NUgrid* x_grid, BCtype_s xBC, float *data);
47
48 NUBspline_2d_s *
49 create_NUBspline_2d_s (NUgrid* x_grid, NUgrid* y_grid,
50 BCtype_s xBC, BCtype_s yBC, float *data);
51
52 NUBspline_3d_s *
53 create_NUBspline_3d_s (NUgrid* x_grid, NUgrid* y_grid, NUgrid* z_grid,
54 BCtype_s xBC, BCtype_s yBC, BCtype_s zBC, float *data);
55
56 ////////////////////////////////////////
57 // Nonuniform, double precision, real //
58 ////////////////////////////////////////
59 NUBspline_1d_d *
60 create_NUBspline_1d_d (NUgrid* x_grid, BCtype_d xBC, double *data);
61
62 NUBspline_2d_d *
63 create_NUBspline_2d_d (NUgrid* x_grid, NUgrid* y_grid,
64 BCtype_d xBC, BCtype_d yBC, double *data);
65
66 NUBspline_3d_d *
67 create_NUBspline_3d_d (NUgrid* x_grid, NUgrid* y_grid, NUgrid* z_grid,
68 BCtype_d xBC, BCtype_d yBC, BCtype_d zBC, double *data);
69
70 ///////////////////////////////////////////
71 // Nonuniform, single precision, complex //
72 ///////////////////////////////////////////
73 NUBspline_1d_c *
74 create_NUBspline_1d_c (NUgrid* x_grid, BCtype_c xBC,
75 complex_float *data);
76
77 NUBspline_2d_c *
78 create_NUBspline_2d_c (NUgrid* x_grid, NUgrid* y_grid,
79 BCtype_c xBC, BCtype_c yBC, complex_float *data);
80
81 NUBspline_3d_c *
82 create_NUBspline_3d_c (NUgrid* x_grid, NUgrid* y_grid, NUgrid* z_grid,
83 BCtype_c xBC, BCtype_c yBC, BCtype_c zBC,
84 complex_float *data);
85
86 ///////////////////////////////////////////
87 // Nonuniform, double precision, complex //
88 ///////////////////////////////////////////
89 NUBspline_1d_z *
90 create_NUBspline_1d_z (NUgrid* x_grid, BCtype_z xBC,
91 complex_double *data);
92 NUBspline_2d_z *
93 create_NUBspline_2d_z (NUgrid* x_grid, NUgrid* restrict y_grid,
94 BCtype_z xBC, BCtype_z yBC, complex_double *data);
95
96 NUBspline_3d_z *
97 create_NUBspline_3d_z (NUgrid* x_grid, NUgrid* y_grid, NUgrid* z_grid,
98 BCtype_z xBC, BCtype_z yBC, BCtype_z zBC, complex_double *data);
99
100 #ifdef __cplusplus
101 }
102 #endif
103 #endif