gtkIOStream
1.7.0
GTK+ << C++ IOStream operators for GTK+. Now with ORBing, numerical computation, audio client and more ...
knots.f
Go to the documentation of this file.
1
subroutine
knots
( break, l, kpm, t, n )
2
3
c*********************************************************************72
4
c
5
cc KNOTS is to be called in COLLOC.
6
c
7
c from * a practical guide to splines * by c. de boor
8
c to be called in c o l l o c .
9
c constructs from the given breakpoint sequence b r e a k the knot
10
c sequence t so that
11
c spline(k+m,t) = pp(k+m,break) with m-1 continuous derivatives .
12
c this means that
13
c t(1),...,t(n+kpm) = break(1) kpm times, then break(2),...,
14
c break(l) each k times, then, finally, break(l+1) kpm times.
15
c
16
c****** i n p u t ******
17
c break(1),...,break(l+1) breakpoint sequence
18
c l number of intervals or pieces
19
c kpm = k + m, order of the pp function or spline
20
c
21
c****** o u t p u t ******
22
c t(1),...,t(n+kpm) the knot sequence.
23
c n = l*k + m = dimension of spline(k+m,t).
24
c
25
implicit none
26
27
integer
l,kpm,n, iside,j,jj,jjj,k,ll,m
28
double precision
break(1),t(1), xside
29
common
/side/ m,iside,xside(10)
30
k = kpm - m
31
n = l*k + m
32
jj = n + kpm
33
jjj = l + 1
34
do
11 ll=1,kpm
35
t(jj) = break(jjj)
36
11 jj = jj - 1
37
do
12 j=1,l
38
jjj = jjj - 1
39
do
12 ll=1,k
40
t(jj) = break(jjj)
41
12 jj = jj - 1
42
do
13 ll=1,kpm
43
13 t(ll) = break(1)
44
return
45
end
knots
subroutine knots(break, l, kpm, t, n)
Definition:
knots.f:2
gtkIOStream: /tmp/gtkiostream/src/deBoor/knots.f Source File
Support this project by purchasing our hardware.
GTK+ IOStream
Beta