167 SUBROUTINE zsysv( UPLO, N, NRHS, A, LDA, IPIV, B, LDB, WORK,
176 INTEGER INFO, LDA, LDB, LWORK, N, NRHS
180 COMPLEX*16 A( LDA, * ), B( LDB, * ), WORK( * )
204 lquery = ( lwork.EQ.-1 )
205 IF( .NOT.lsame( uplo,
'U' ) .AND.
206 $ .NOT.lsame( uplo,
'L' ) )
THEN
208 ELSE IF( n.LT.0 )
THEN
210 ELSE IF( nrhs.LT.0 )
THEN
212 ELSE IF( lda.LT.max( 1, n ) )
THEN
214 ELSE IF( ldb.LT.max( 1, n ) )
THEN
216 ELSE IF( lwork.LT.1 .AND. .NOT.lquery )
THEN
224 CALL zsytrf( uplo, n, a, lda, ipiv, work, -1, info )
225 lwkopt = int( dble( work( 1 ) ) )
231 CALL xerbla(
'ZSYSV ', -info )
233 ELSE IF( lquery )
THEN
239 CALL zsytrf( uplo, n, a, lda, ipiv, work, lwork, info )
244 IF ( lwork.LT.n )
THEN
248 CALL zsytrs( uplo, n, nrhs, a, lda, ipiv, b, ldb, info )
254 CALL zsytrs2( uplo,n,nrhs,a,lda,ipiv,b,ldb,work,info )
subroutine zsysv(uplo, n, nrhs, a, lda, ipiv, b, ldb, work, lwork, info)
ZSYSV computes the solution to system of linear equations A * X = B for SY matrices
subroutine zsytrf(uplo, n, a, lda, ipiv, work, lwork, info)
ZSYTRF
subroutine zsytrs2(uplo, n, nrhs, a, lda, ipiv, b, ldb, work, info)
ZSYTRS2
subroutine zsytrs(uplo, n, nrhs, a, lda, ipiv, b, ldb, info)
ZSYTRS