169 SUBROUTINE zhesv( UPLO, N, NRHS, A, LDA, IPIV, B, LDB, WORK,
178 INTEGER INFO, LDA, LDB, LWORK, N, NRHS
182 COMPLEX*16 A( LDA, * ), B( LDB, * ), WORK( * )
194 EXTERNAL lsame, ilaenv
207 lquery = ( lwork.EQ.-1 )
208 IF( .NOT.lsame( uplo,
'U' ) .AND. .NOT.lsame( uplo,
'L' ) )
THEN
210 ELSE IF( n.LT.0 )
THEN
212 ELSE IF( nrhs.LT.0 )
THEN
214 ELSE IF( lda.LT.max( 1, n ) )
THEN
216 ELSE IF( ldb.LT.max( 1, n ) )
THEN
218 ELSE IF( lwork.LT.1 .AND. .NOT.lquery )
THEN
226 nb = ilaenv( 1,
'ZHETRF', uplo, n, -1, -1, -1 )
233 CALL xerbla(
'ZHESV ', -info )
235 ELSE IF( lquery )
THEN
241 CALL zhetrf( uplo, n, a, lda, ipiv, work, lwork, info )
246 IF ( lwork.LT.n )
THEN
250 CALL zhetrs( uplo, n, nrhs, a, lda, ipiv, b, ldb, info )
256 CALL zhetrs2( uplo,n,nrhs,a,lda,ipiv,b,ldb,work,info )
subroutine xerbla(srname, info)
subroutine zhesv(uplo, n, nrhs, a, lda, ipiv, b, ldb, work, lwork, info)
ZHESV computes the solution to system of linear equations A * X = B for HE matrices
subroutine zhetrf(uplo, n, a, lda, ipiv, work, lwork, info)
ZHETRF
subroutine zhetrs2(uplo, n, nrhs, a, lda, ipiv, b, ldb, work, info)
ZHETRS2
subroutine zhetrs(uplo, n, nrhs, a, lda, ipiv, b, ldb, info)
ZHETRS