257 SUBROUTINE dsytrf_rk( UPLO, N, A, LDA, E, IPIV, WORK, LWORK,
266 INTEGER INFO, LDA, LWORK, N
270 DOUBLE PRECISION 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,
'DSYTRF_RK', uplo, n, -1, -1, -1 )
313 lwkopt = max( 1, n*nb )
318 CALL xerbla(
'DSYTRF_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,
'DSYTRF_RK',
331 $ uplo, n, -1, -1, -1 ) )
360 CALL dlasyf_rk( uplo, k, nb, kb, a, lda, e,
361 $ ipiv, work, ldwork, iinfo )
366 CALL dsytf2_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 dswap( n-k, a( i, k+1 ), lda,
392 $ a( ip, k+1 ), lda )
428 CALL dlasyf_rk( uplo, n-k+1, nb, kb, a( k, k ), lda, e( k ),
429 $ ipiv( k ), work, ldwork, iinfo )
436 CALL dsytf2_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 dswap( k-1, a( i, 1 ), lda,
subroutine xerbla(srname, info)
subroutine dsytf2_rk(uplo, n, a, lda, e, ipiv, info)
DSYTF2_RK computes the factorization of a real symmetric indefinite matrix using the bounded Bunch-Ka...
subroutine dsytrf_rk(uplo, n, a, lda, e, ipiv, work, lwork, info)
DSYTRF_RK computes the factorization of a real symmetric indefinite matrix using the bounded Bunch-Ka...
subroutine dlasyf_rk(uplo, n, nb, kb, a, lda, e, ipiv, w, ldw, info)
DLASYF_RK computes a partial factorization of a real symmetric indefinite matrix using bounded Bunch-...
subroutine dswap(n, dx, incx, dy, incy)
DSWAP