158 SUBROUTINE zsysv_aa( UPLO, N, NRHS, A, LDA, IPIV, B, LDB, WORK,
167 INTEGER INFO, LDA, LDB, LWORK, N, NRHS
171 COMPLEX*16 A( LDA, * ), B( LDB, * ), WORK( * )
178 INTEGER LWKOPT, LWKOPT_SYTRF, LWKOPT_SYTRS
183 EXTERNAL ilaenv, lsame
196 lquery = ( lwork.EQ.-1 )
197 IF( .NOT.lsame( uplo,
'U' ) .AND.
198 $ .NOT.lsame( uplo,
'L' ) )
THEN
200 ELSE IF( n.LT.0 )
THEN
202 ELSE IF( nrhs.LT.0 )
THEN
204 ELSE IF( lda.LT.max( 1, n ) )
THEN
206 ELSE IF( ldb.LT.max( 1, n ) )
THEN
208 ELSE IF( lwork.LT.max(2*n, 3*n-2) .AND. .NOT.lquery )
THEN
213 CALL zsytrf_aa( uplo, n, a, lda, ipiv, work, -1, info )
214 lwkopt_sytrf = int( work(1) )
215 CALL zsytrs_aa( uplo, n, nrhs, a, lda, ipiv, b, ldb, work,
217 lwkopt_sytrs = int( work(1) )
218 lwkopt = max( lwkopt_sytrf, lwkopt_sytrs )
223 CALL xerbla(
'ZSYSV_AA ', -info )
225 ELSE IF( lquery )
THEN
231 CALL zsytrf_aa( uplo, n, a, lda, ipiv, work, lwork, info )
236 CALL zsytrs_aa( uplo, n, nrhs, a, lda, ipiv, b, ldb, work,
subroutine zsysv_aa(uplo, n, nrhs, a, lda, ipiv, b, ldb, work, lwork, info)
ZSYSV_AA computes the solution to system of linear equations A * X = B for SY matrices
subroutine zsytrf_aa(uplo, n, a, lda, ipiv, work, lwork, info)
ZSYTRF_AA
subroutine zsytrs_aa(uplo, n, nrhs, a, lda, ipiv, b, ldb, work, lwork, info)
ZSYTRS_AA