158 SUBROUTINE csysv_aa( UPLO, N, NRHS, A, LDA, IPIV, B, LDB, WORK,
167 INTEGER INFO, LDA, LDB, LWORK, N, NRHS
171 COMPLEX A( LDA, * ), B( LDB, * ), WORK( * )
178 INTEGER LWKOPT, LWKOPT_SYTRF, LWKOPT_SYTRS
184 EXTERNAL ilaenv, lsame, sroundup_lwork
197 lquery = ( lwork.EQ.-1 )
198 IF( .NOT.lsame( uplo,
'U' ) .AND.
199 $ .NOT.lsame( uplo,
'L' ) )
THEN
201 ELSE IF( n.LT.0 )
THEN
203 ELSE IF( nrhs.LT.0 )
THEN
205 ELSE IF( lda.LT.max( 1, n ) )
THEN
207 ELSE IF( ldb.LT.max( 1, n ) )
THEN
209 ELSE IF( lwork.LT.max(2*n, 3*n-2) .AND. .NOT.lquery )
THEN
214 CALL csytrf_aa( uplo, n, a, lda, ipiv, work, -1, info )
215 lwkopt_sytrf = int( work(1) )
216 CALL csytrs_aa( uplo, n, nrhs, a, lda, ipiv, b, ldb, work,
218 lwkopt_sytrs = int( work(1) )
219 lwkopt = max( lwkopt_sytrf, lwkopt_sytrs )
220 work( 1 ) = sroundup_lwork(lwkopt)
224 CALL xerbla(
'CSYSV_AA ', -info )
226 ELSE IF( lquery )
THEN
232 CALL csytrf_aa( uplo, n, a, lda, ipiv, work, lwork, info )
237 CALL csytrs_aa( uplo, n, nrhs, a, lda, ipiv, b, ldb, work,
242 work( 1 ) = sroundup_lwork(lwkopt)
subroutine csysv_aa(uplo, n, nrhs, a, lda, ipiv, b, ldb, work, lwork, info)
CSYSV_AA computes the solution to system of linear equations A * X = B for SY matrices
subroutine csytrf_aa(uplo, n, a, lda, ipiv, work, lwork, info)
CSYTRF_AA
subroutine csytrs_aa(uplo, n, nrhs, a, lda, ipiv, b, ldb, work, lwork, info)
CSYTRS_AA