ETS  \$Id: Doxyfile 2162 2020-02-26 14:16:09Z g2dpc $
 All Classes Files Functions Variables Pages
fpbspl.f
Go to the documentation of this file.
1  subroutine fpbspl(t,n,k,x,l,h)
2  implicit none
3 c subroutine fpbspl evaluates the (k+1) non-zero b-splines of
4 c degree k at t(l) <= x < t(l+1) using the stable recurrence
5 c relation of de boor and cox.
6 c ..
7 c ..scalar arguments..
8  real*8 x
9  integer n,k,l
10 c ..array arguments..
11  real*8 t(n),h(6)
12 c ..local scalars..
13  real*8 f,one
14  integer i,j,li,lj
15 c ..local arrays..
16  real*8 hh(5)
17 c ..
18  one = 0.1e+01
19  h(1) = one
20  do 20 j=1,k
21  do 10 i=1,j
22  hh(i) = h(i)
23  10 continue
24  h(1) = 0.
25  do 20 i=1,j
26  li = l+i
27  lj = li-j
28  f = hh(i)/(t(li)-t(lj))
29  h(i) = h(i)+f*(t(li)-x)
30  h(i+1) = f*(x-t(lj))
31  20 continue
32 C write(6,*)" H = ",h
33  return
34  end
subroutine fpbspl(t, n, k, x, l, h)
Definition: fpbspl.f:1