Previous: chpfa Up: ../linpack.html Next: isamax
SUBROUTINE CHPSL(AP,N,KPVT,B) INTEGER N,KPVT(1) COMPLEX AP(1),B(1) C C CHISL SOLVES THE COMPLEX HERMITIAN SYSTEM C A * X = B C USING THE FACTORS COMPUTED BY CHPFA. C C ON ENTRY C C AP COMPLEX(N*(N+1)/2) C THE OUTPUT FROM CHPFA. C C N INTEGER C THE ORDER OF THE MATRIX A . C C KPVT INTEGER(N) C THE PIVOT VECTOR FROM CHPFA. C C B COMPLEX(N) C THE RIGHT HAND SIDE VECTOR. C C ON RETURN C C B THE SOLUTION VECTOR X . C C ERROR CONDITION C C A DIVISION BY ZERO MAY OCCUR IF CHPCO HAS SET RCOND .EQ. 0.0 C OR CHPFA HAS SET INFO .NE. 0 . C C TO COMPUTE INVERSE(A) * C WHERE C IS A MATRIX C WITH P COLUMNS C CALL CHPFA(AP,N,KPVT,INFO) C IF (INFO .NE. 0) GO TO ... C DO 10 J = 1, P C CALL CHPSL(AP,N,KPVT,C(1,J)) C 10 CONTINUE C C LINPACK. THIS VERSION DATED 08/14/78 . C JAMES BUNCH, UNIV. CALIF. SAN DIEGO, ARGONNE NAT. LAB. C C SUBROUTINES AND FUNCTIONS C C BLAS CAXPY,CDOTC C FORTRAN CONJG,IABS