257 SUBROUTINE zsytrf_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,
'ZSYTRF_RK', uplo, n, -1, -1, -1 )
313 lwkopt = max( 1, n*nb )
318 CALL xerbla(
'ZSYTRF_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,
'ZSYTRF_RK',
331 $ uplo, n, -1, -1, -1 ) )
360 CALL zlasyf_rk( uplo, k, nb, kb, a, lda, e,
361 $ ipiv, work, ldwork, iinfo )
366 CALL zsytf2_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 zlasyf_rk( uplo, n-k+1, nb, kb, a( k, k ), lda, e( k ),
429 $ ipiv( k ), work, ldwork, iinfo )
436 CALL zsytf2_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 zsytf2_rk(uplo, n, a, lda, e, ipiv, info)
ZSYTF2_RK computes the factorization of a complex symmetric indefinite matrix using the bounded Bunch...
subroutine zsytrf_rk(uplo, n, a, lda, e, ipiv, work, lwork, info)
ZSYTRF_RK computes the factorization of a complex symmetric indefinite matrix using the bounded Bunch...
subroutine zlasyf_rk(uplo, n, nb, kb, a, lda, e, ipiv, w, ldw, info)
ZLASYF_RK computes a partial factorization of a complex symmetric indefinite matrix using bounded Bun...
subroutine zswap(n, zx, incx, zy, incy)
ZSWAP