2 SUBROUTINE DHESL
(A
, LDA
, N
, IPVT
, B
)
3 INTEGER LDA
, N
, IPVT
(*)
4 DOUBLE PRECISION A
(LDA
,*), B
(*)
5 C-----------------------------------------------------------------------
6 C This is essentially the LINPACK routine DGESL except for changes
7 C due to the fact that A is an upper Hessenberg matrix.
8 C-----------------------------------------------------------------------
9 C DHESL solves the real system A * x = b
10 C using the factors computed by DHEFA.
14 C A DOUBLE PRECISION(LDA, N)
15 C the output from DHEFA.
18 C the leading dimension of the array A .
21 C the order of the matrix A .
24 C the pivot vector from DHEFA.
26 C B DOUBLE PRECISION(N)
27 C the right hand side vector.
31 C B the solution vector x .
33 C Modification of LINPACK, by Peter Brown, LLNL.
34 C Written 7/20/83. This version dated 6/20/01.
37 C-----------------------------------------------------------------------
46 IF (NM1
.LT
. 1) GO TO 30
50 IF (L
.EQ
. K
) GO TO 10
54 B
(K
+1) = B
(K
+1) + T*A
(K
+1,K
)
64 CALL DAXPY
(K
-1, T
, A
(1,K
), 1, B
(1), 1)
67 C----------------------- End of Subroutine DHESL -----------------------