1
SUBROUTINE SOLVDS(NN,A,NWK,MAXA,V)
3
C This subroutine solves a system of linear equations Bx=b, where
4
C B is symmetric, and is represented by its LDU factorization.
8
C NN -- dimension of B.
10
C A -- one dimensional real array containing the upper
11
C triangular skyline portion of the LDU decomposition
12
C of the symmetric matrix B.
14
C NWK -- number of elements in A.
16
C MAXA -- an integer array of length NN+1 which contains the
17
C location in A of the diagonal elements of B.
18
C By convention, MAXA(NN+1) = NWK+1 .
20
C V -- real array of length NN containing the vector b.
25
C V -- solution of the system of equations B x = b .
28
C No working storage is required by this routine.
30
INTEGER K,KK,KL,KU,L,NN,MAXA(NN+1),N,NWK
31
DOUBLE PRECISION A(NWK),C,V(NN)
53
IF (KU-KL) 530,510,510
57
V(K)=V(K) - A(KK)*V(N)