gtkIOStream
1.7.0
GTK+ << C++ IOStream operators for GTK+. Now with ORBing, numerical computation, audio client and more ...
l2knts.f
Go to the documentation of this file.
1
subroutine
l2knts
( break, l, k, t, n )
2
3
c*********************************************************************72
4
c
5
cc L2KNTS converts breakpoints to knots.
6
c
7
c from * a practical guide to splines * by c. de boor
8
c to be called in main program l 2 m a i n .
9
converts the breakpoint sequence b r e a k into a corresponding knot
10
c sequence t to allow the repr. of a pp function of order k with
11
c k-2 continuous derivatives as a spline of order k with knot
12
c sequence t . this means that
13
c t(1), ..., t(n+k) = break(1) k times, then break(i), i=2,...,l, each
14
c once, then break(l+1) k times .
15
c therefore, n = k-1 + l.
16
c
17
c****** i n p u t ******
18
c k the order
19
c l the number of polynomial pieces
20
c break(1), ...,break(l+1) the breakpoint sequence
21
c
22
c****** o u t p u t ******
23
c t(1),...,t(n+k) the knot sequence
24
c n the dimension of the corresp. spline space of order k .
25
c
26
implicit none
27
28
integer
k,l,n, i,km1
29
double precision
break(1),t(1)
30
c dimension break(l+1),t(n+k)
31
km1 = k - 1
32
do
5 i=1,km1
33
5 t(i) = break(1)
34
do
6 i=1,l
35
6 t(km1+i) = break(i)
36
n = km1 + l
37
do
7 i=1,k
38
7 t(n+i) = break(l+1)
39
return
40
end
l2knts
subroutine l2knts(break, l, k, t, n)
Definition:
l2knts.f:2
gtkIOStream: /tmp/gtkiostream/src/deBoor/l2knts.f Source File
Support this project by purchasing our hardware.
GTK+ IOStream
Beta