207 SUBROUTINE csytrf_rook( UPLO, N, A, LDA, IPIV, WORK, LWORK, INFO )
215 INTEGER INFO, LDA, LWORK, N
219 COMPLEX A( LDA, * ), WORK( * )
225 LOGICAL LQUERY, UPPER
226 INTEGER IINFO, IWS, J, K, KB, LDWORK, LWKOPT, NB, NBMIN
232 EXTERNAL lsame, ilaenv, sroundup_lwork
245 upper = lsame( uplo,
'U' )
246 lquery = ( lwork.EQ.-1 )
247 IF( .NOT.upper .AND. .NOT.lsame( uplo,
'L' ) )
THEN
249 ELSE IF( n.LT.0 )
THEN
251 ELSE IF( lda.LT.max( 1, n ) )
THEN
253 ELSE IF( lwork.LT.1 .AND. .NOT.lquery )
THEN
261 nb = ilaenv( 1,
'CSYTRF_ROOK', uplo, n, -1, -1, -1 )
262 lwkopt = max( 1, n*nb )
263 work( 1 ) = sroundup_lwork(lwkopt)
267 CALL xerbla(
'CSYTRF_ROOK', -info )
269 ELSE IF( lquery )
THEN
275 IF( nb.GT.1 .AND. nb.LT.n )
THEN
277 IF( lwork.LT.iws )
THEN
278 nb = max( lwork / ldwork, 1 )
279 nbmin = max( 2, ilaenv( 2,
'CSYTRF_ROOK',
280 $ uplo, n, -1, -1, -1 ) )
310 $ ipiv, work, ldwork, iinfo )
321 IF( info.EQ.0 .AND. iinfo.GT.0 )
352 CALL clasyf_rook( uplo, n-k+1, nb, kb, a( k, k ), lda,
353 $ ipiv( k ), work, ldwork, iinfo )
358 CALL csytf2_rook( uplo, n-k+1, a( k, k ), lda, ipiv( k ),
365 IF( info.EQ.0 .AND. iinfo.GT.0 )
366 $ info = iinfo + k - 1
370 DO 30 j = k, k + kb - 1
371 IF( ipiv( j ).GT.0 )
THEN
372 ipiv( j ) = ipiv( j ) + k - 1
374 ipiv( j ) = ipiv( j ) - k + 1
386 work( 1 ) = sroundup_lwork(lwkopt)
subroutine xerbla(srname, info)
subroutine csytf2_rook(uplo, n, a, lda, ipiv, info)
CSYTF2_ROOK computes the factorization of a complex symmetric indefinite matrix using the bounded Bun...
subroutine csytrf_rook(uplo, n, a, lda, ipiv, work, lwork, info)
CSYTRF_ROOK
subroutine clasyf_rook(uplo, n, nb, kb, a, lda, ipiv, w, ldw, info)
CLASYF_ROOK computes a partial factorization of a complex symmetric matrix using the bounded Bunch-Ka...