Krita Source Code Documentation
Loading...
Searching...
No Matches
bspline_structs.h
Go to the documentation of this file.
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 //
20
21#ifndef BSPLINE_STRUCTS_STD_H
22#define BSPLINE_STRUCTS_STD_H
23
25// Single precision real //
35
45
46typedef struct
47{
51 int x_stride, y_stride;
52 Ugrid x_grid, y_grid, z_grid;
53 BCtype_s xBC, yBC, zBC;
55
56
58// Double precision real //
68
78
79typedef struct
80{
83 double* restrict coefs;
84 int x_stride, y_stride;
85 Ugrid x_grid, y_grid, z_grid;
86 BCtype_d xBC, yBC, zBC;
88
89
90
92// Single precision complex //
102
112
113typedef struct
114{
118 int x_stride, y_stride;
119 Ugrid x_grid, y_grid, z_grid;
120 BCtype_c xBC, yBC, zBC;
121
123
124
126// Double precision complex //
136
146
147typedef struct
148{
152 int x_stride, y_stride;
153 Ugrid x_grid, y_grid, z_grid;
154 BCtype_z xBC, yBC, zBC;
156
157
158#endif
complex float complex_float
type_code
complex double complex_double
spline_code
#define restrict
spline_code spcode
complex_float *restrict coefs
double *restrict coefs
spline_code spcode
float *restrict coefs
spline_code spcode
spline_code spcode
complex_double *restrict coefs
spline_code spcode
complex_float *restrict coefs
spline_code spcode
double *restrict coefs
float *restrict coefs
spline_code spcode
spline_code spcode
complex_double *restrict coefs
complex_float *restrict coefs
spline_code spcode
double *restrict coefs
spline_code spcode
spline_code spcode
float *restrict coefs
complex_double *restrict coefs
spline_code spcode