211 SUBROUTINE zhetrf_rook( UPLO, N, A, LDA, IPIV, WORK, LWORK, INFO )
219 INTEGER INFO, LDA, LWORK, N
223 COMPLEX*16 A( LDA, * ), WORK( * )
229 LOGICAL LQUERY, UPPER
230 INTEGER IINFO, IWS, J, K, KB, LDWORK, LWKOPT, NB, NBMIN
235 EXTERNAL lsame, ilaenv
248 upper = lsame( uplo,
'U' )
249 lquery = ( lwork.EQ.-1 )
250 IF( .NOT.upper .AND. .NOT.lsame( uplo,
'L' ) )
THEN
252 ELSE IF( n.LT.0 )
THEN
254 ELSE IF( lda.LT.max( 1, n ) )
THEN
256 ELSE IF( lwork.LT.1 .AND. .NOT.lquery )
THEN
264 nb = ilaenv( 1,
'ZHETRF_ROOK', uplo, n, -1, -1, -1 )
265 lwkopt = max( 1, n*nb )
270 CALL xerbla(
'ZHETRF_ROOK', -info )
272 ELSE IF( lquery )
THEN
278 IF( nb.GT.1 .AND. nb.LT.n )
THEN
280 IF( lwork.LT.iws )
THEN
281 nb = max( lwork / ldwork, 1 )
282 nbmin = max( 2, ilaenv( 2,
'ZHETRF_ROOK',
283 $ uplo, n, -1, -1, -1 ) )
313 $ ipiv, work, ldwork, iinfo )
324 IF( info.EQ.0 .AND. iinfo.GT.0 )
355 CALL zlahef_rook( uplo, n-k+1, nb, kb, a( k, k ), lda,
356 $ ipiv( k ), work, ldwork, iinfo )
361 CALL zhetf2_rook( uplo, n-k+1, a( k, k ), lda, ipiv( k ),
368 IF( info.EQ.0 .AND. iinfo.GT.0 )
369 $ info = iinfo + k - 1
373 DO 30 j = k, k + kb - 1
374 IF( ipiv( j ).GT.0 )
THEN
375 ipiv( j ) = ipiv( j ) + k - 1
377 ipiv( j ) = ipiv( j ) - k + 1
subroutine xerbla(srname, info)
subroutine zhetf2_rook(uplo, n, a, lda, ipiv, info)
ZHETF2_ROOK computes the factorization of a complex Hermitian indefinite matrix using the bounded Bun...
subroutine zhetrf_rook(uplo, n, a, lda, ipiv, work, lwork, info)
ZHETRF_ROOK computes the factorization of a complex Hermitian indefinite matrix using the bounded Bun...
subroutine zlahef_rook(uplo, n, nb, kb, a, lda, ipiv, w, ldw, info)
Download ZLAHEF_ROOK + dependencies <a href="http://www.netlib.org/cgi-bin/netlibfiles....