gtkIOStream  1.7.0
GTK+ << C++ IOStream operators for GTK+. Now with ORBing, numerical computation, audio client and more ...
DeBoorInstance.H
Go to the documentation of this file.
1 /* Copyright 2000-2018 Matt Flax <flatmax@flatmax.org>
2  This file is part of GTK+ IOStream class set
3 
4  GTK+ IOStream is free software; you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation; either version 2 of the License, or
7  (at your option) any later version.
8 
9  GTK+ IOStream is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You have received a copy of the GNU General Public License
15  along with GTK+ IOStream
16  */
17 #ifndef DEBOORINSTANCE_H
18 #define DEBOORINSTANCE_H
19 
20 #include "DeBoor.h"
21 
23 
24 float *x;
25 float *y;
26 float *dy;
27 float *result;
28 float p;
29 int N;
30 
31 void csaps(){
32  deBoor.csaps(x, y, dy, N, p);
33  for (int i=0; i<N; i++)
34  result[i]=deBoor[i];
35 }
36 
37 void create(int n){
38  if (N<n){
39  deleteData();
40  }
41 }
42 
43 void deleteData(){
44  if (x)
45  delete [] x;
46  x=NULL;
47  if (y)
48  delete [] y;
49  y=NULL;
50  if (dy)
51  delete [] dy;
52  dy=NULL;
53  if (result)
54  delete [] result;
55  result=NULL;
56  N=0;
57 }
58 
59 #endif // DEBOORINSTANCE_H
float * x
float * result
int N
DeBoor deBoor
Definition: DeBoor.H:26
float p
void csaps(float *x, float *y, float *dy, int n, float s)
Definition: DeBoor.C:124
void csaps()
void deleteData()
void create(int n)
float * y
float * dy
gtkIOStream: /tmp/gtkiostream/include/DeBoorInstance.H Source File
GTK+ IOStream  Beta