257 SUBROUTINE zhetrf_rk( UPLO, N, A, LDA, E, IPIV, WORK, LWORK,
266 INTEGER INFO, LDA, LWORK, N
270 COMPLEX*16 A( LDA, * ), E( * ), WORK( * )
276 LOGICAL LQUERY, UPPER
277 INTEGER I, IINFO, IP, IWS, K, KB, LDWORK, LWKOPT,
283 EXTERNAL lsame, ilaenv
296 upper = lsame( uplo,
'U' )
297 lquery = ( lwork.EQ.-1 )
298 IF( .NOT.upper .AND. .NOT.lsame( uplo,
'L' ) )
THEN
300 ELSE IF( n.LT.0 )
THEN
302 ELSE IF( lda.LT.max( 1, n ) )
THEN
304 ELSE IF( lwork.LT.1 .AND. .NOT.lquery )
THEN
312 nb = ilaenv( 1,
'ZHETRF_RK', uplo, n, -1, -1, -1 )
318 CALL xerbla(
'ZHETRF_RK', -info )
320 ELSE IF( lquery )
THEN
326 IF( nb.GT.1 .AND. nb.LT.n )
THEN
328 IF( lwork.LT.iws )
THEN
329 nb = max( lwork / ldwork, 1 )
330 nbmin = max( 2, ilaenv( 2,
'ZHETRF_RK',
331 $ uplo, n, -1, -1, -1 ) )
360 CALL zlahef_rk( uplo, k, nb, kb, a, lda, e,
361 $ ipiv, work, ldwork, iinfo )
366 CALL zhetf2_rk( uplo, k, a, lda, e, ipiv, iinfo )
372 IF( info.EQ.0 .AND. iinfo.GT.0 )
388 DO i = k, ( k - kb + 1 ), -1
389 ip = abs( ipiv( i ) )
391 CALL zswap( n-k, a( i, k+1 ), lda,
392 $ a( ip, k+1 ), lda )
428 CALL zlahef_rk( uplo, n-k+1, nb, kb, a( k, k ), lda, e( k ),
429 $ ipiv( k ), work, ldwork, iinfo )
436 CALL zhetf2_rk( uplo, n-k+1, a( k, k ), lda, e( k ),
444 IF( info.EQ.0 .AND. iinfo.GT.0 )
445 $ info = iinfo + k - 1
450 IF( ipiv( i ).GT.0 )
THEN
451 ipiv( i ) = ipiv( i ) + k - 1
453 ipiv( i ) = ipiv( i ) - k + 1
467 DO i = k, ( k + kb - 1 ), 1
468 ip = abs( ipiv( i ) )
470 CALL zswap( k-1, a( i, 1 ), lda,
subroutine xerbla(srname, info)
subroutine zhetf2_rk(uplo, n, a, lda, e, ipiv, info)
ZHETF2_RK computes the factorization of a complex Hermitian indefinite matrix using the bounded Bunch...
subroutine zhetrf_rk(uplo, n, a, lda, e, ipiv, work, lwork, info)
ZHETRF_RK computes the factorization of a complex Hermitian indefinite matrix using the bounded Bunch...
subroutine zlahef_rk(uplo, n, nb, kb, a, lda, e, ipiv, w, ldw, info)
ZLAHEF_RK computes a partial factorization of a complex Hermitian indefinite matrix using bounded Bun...
subroutine zswap(n, zx, incx, zy, incy)
ZSWAP