gtkIOStream
1.7.0
GTK+ << C++ IOStream operators for GTK+. Now with ORBing, numerical computation, audio client and more ...
subbak.f
Go to the documentation of this file.
1
subroutine
subbak
( w, ipivot, nrow, ncol, last, x )
2
3
c*********************************************************************72
4
c
5
cc SUBBAK carries out back substitution for the current block.
6
c
7
c carries out backsubstitution for current block.
8
c
9
c parameters
10
c w, ipivot, nrow, ncol, last are as on return from factrb.
11
c x(1),...,x(ncol) contains, on input, the right side for the
12
c equations in this block after backsubstitution has been
13
c carried up to but not including equation ipivot(last).
14
c means that x(j) contains the right side of equation ipi-
15
c vot(j) as modified during elimination, j=1,...,last, while
16
c for j .gt. last, x(j) is already a component of the solut-
17
c ion vector.
18
c x(1),...,x(ncol) contains, on output, the components of the solut-
19
c ion corresponding to the present block.
20
c
21
implicit none
22
23
integer
ncol
24
integer
nrow
25
26
integer
ipivot(nrow),last, ip,j,k,kp1
27
double precision
w(nrow,ncol),x(ncol), sum
28
k = last
29
ip = ipivot(k)
30
sum = 0.0d+00
31
if
(k .eq. ncol)
go to
4
32
kp1 = k+1
33
2
do
3 j=kp1,ncol
34
3 sum = w(ip,j)*x(j) + sum
35
4 x(k) = (x(k) - sum)/w(ip,k)
36
if
(k .eq. 1)
return
37
kp1 = k
38
k = k-1
39
ip = ipivot(k)
40
sum = 0.0d+00
41
go to
2
42
end
subbak
subroutine subbak(w, ipivot, nrow, ncol, last, x)
Definition:
subbak.f:2
gtkIOStream: /tmp/gtkiostream/src/deBoor/subbak.f Source File
Support this project by purchasing our hardware.
GTK+ IOStream
Beta