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
22
DeBoor
deBoor
;
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
x
float * x
Definition:
DeBoorInstance.H:24
result
float * result
Definition:
DeBoorInstance.H:27
N
int N
Definition:
DeBoorInstance.H:29
deBoor
DeBoor deBoor
Definition:
DeBoorInstance.H:22
DeBoor
Definition:
DeBoor.H:26
p
float p
Definition:
DeBoorInstance.H:28
DeBoor::csaps
void csaps(float *x, float *y, float *dy, int n, float s)
Definition:
DeBoor.C:124
csaps
void csaps()
Definition:
DeBoorInstance.H:31
deleteData
void deleteData()
Definition:
DeBoorInstance.H:43
create
void create(int n)
Definition:
DeBoorInstance.H:37
y
float * y
Definition:
DeBoorInstance.H:25
dy
float * dy
Definition:
DeBoorInstance.H:26
gtkIOStream: /tmp/gtkiostream/include/DeBoorInstance.H Source File
Support this project by purchasing our hardware.
GTK+ IOStream
Beta