255 SUBROUTINE dsytrf_rk( UPLO, N, A, LDA, E, IPIV, WORK, LWORK,
264 INTEGER INFO, LDA, LWORK, N
268 DOUBLE PRECISION A( LDA, * ), E( * ), WORK( * )
274 LOGICAL LQUERY, UPPER
275 INTEGER I, IINFO, IP, IWS, K, KB, LDWORK, LWKOPT,
281 EXTERNAL lsame, ilaenv
294 upper = lsame( uplo,
'U' )
295 lquery = ( lwork.EQ.-1 )
296 IF( .NOT.upper .AND. .NOT.lsame( uplo,
'L' ) )
THEN
298 ELSE IF( n.LT.0 )
THEN
300 ELSE IF( lda.LT.max( 1, n ) )
THEN
302 ELSE IF( lwork.LT.1 .AND. .NOT.lquery )
THEN
310 nb = ilaenv( 1,
'DSYTRF_RK', uplo, n, -1, -1, -1 )
311 lwkopt = max( 1, n*nb )
316 CALL xerbla(
'DSYTRF_RK', -info )
318 ELSE IF( lquery )
THEN
324 IF( nb.GT.1 .AND. nb.LT.n )
THEN
326 IF( lwork.LT.iws )
THEN
327 nb = max( lwork / ldwork, 1 )
328 nbmin = max( 2, ilaenv( 2,
'DSYTRF_RK',
329 $ uplo, n, -1, -1, -1 ) )
358 CALL dlasyf_rk( uplo, k, nb, kb, a, lda, e,
359 $ ipiv, work, ldwork, iinfo )
364 CALL dsytf2_rk( uplo, k, a, lda, e, ipiv, iinfo )
370 IF( info.EQ.0 .AND. iinfo.GT.0 )
386 DO i = k, ( k - kb + 1 ), -1
387 ip = abs( ipiv( i ) )
389 CALL dswap( n-k, a( i, k+1 ), lda,
390 $ a( ip, k+1 ), lda )
426 CALL dlasyf_rk( uplo, n-k+1, nb, kb, a( k, k ), lda,
428 $ ipiv( k ), work, ldwork, iinfo )
435 CALL dsytf2_rk( uplo, n-k+1, a( k, k ), lda, e( k ),
443 IF( info.EQ.0 .AND. iinfo.GT.0 )
444 $ info = iinfo + k - 1
449 IF( ipiv( i ).GT.0 )
THEN
450 ipiv( i ) = ipiv( i ) + k - 1
452 ipiv( i ) = ipiv( i ) - k + 1
466 DO i = k, ( k + kb - 1 ), 1
467 ip = abs( ipiv( i ) )
469 CALL dswap( k-1, a( i, 1 ), lda,
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-...