255 SUBROUTINE csytrf_rk( UPLO, N, A, LDA, E, IPIV, WORK, LWORK,
264 INTEGER INFO, LDA, LWORK, N
268 COMPLEX A( LDA, * ), E( * ), WORK( * )
274 LOGICAL LQUERY, UPPER
275 INTEGER I, IINFO, IP, IWS, K, KB, LDWORK, LWKOPT,
282 EXTERNAL lsame, ilaenv, sroundup_lwork
295 upper = lsame( uplo,
'U' )
296 lquery = ( lwork.EQ.-1 )
297 IF( .NOT.upper .AND. .NOT.lsame( uplo,
'L' ) )
THEN
299 ELSE IF( n.LT.0 )
THEN
301 ELSE IF( lda.LT.max( 1, n ) )
THEN
303 ELSE IF( lwork.LT.1 .AND. .NOT.lquery )
THEN
311 nb = ilaenv( 1,
'CSYTRF_RK', uplo, n, -1, -1, -1 )
312 lwkopt = max( 1, n*nb )
313 work( 1 ) = sroundup_lwork(lwkopt)
317 CALL xerbla(
'CSYTRF_RK', -info )
319 ELSE IF( lquery )
THEN
325 IF( nb.GT.1 .AND. nb.LT.n )
THEN
327 IF( lwork.LT.iws )
THEN
328 nb = max( lwork / ldwork, 1 )
329 nbmin = max( 2, ilaenv( 2,
'CSYTRF_RK',
330 $ uplo, n, -1, -1, -1 ) )
359 CALL clasyf_rk( uplo, k, nb, kb, a, lda, e,
360 $ ipiv, work, ldwork, iinfo )
365 CALL csytf2_rk( uplo, k, a, lda, e, ipiv, iinfo )
371 IF( info.EQ.0 .AND. iinfo.GT.0 )
387 DO i = k, ( k - kb + 1 ), -1
388 ip = abs( ipiv( i ) )
390 CALL cswap( n-k, a( i, k+1 ), lda,
391 $ a( ip, k+1 ), lda )
427 CALL clasyf_rk( uplo, n-k+1, nb, kb, a( k, k ), lda,
429 $ ipiv( k ), work, ldwork, iinfo )
436 CALL csytf2_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 cswap( k-1, a( i, 1 ), lda,
490 work( 1 ) = sroundup_lwork(lwkopt)
subroutine csytf2_rk(uplo, n, a, lda, e, ipiv, info)
CSYTF2_RK computes the factorization of a complex symmetric indefinite matrix using the bounded Bunch...
subroutine csytrf_rk(uplo, n, a, lda, e, ipiv, work, lwork, info)
CSYTRF_RK computes the factorization of a complex symmetric indefinite matrix using the bounded Bunch...
subroutine clasyf_rk(uplo, n, nb, kb, a, lda, e, ipiv, w, ldw, info)
CLASYF_RK computes a partial factorization of a complex symmetric indefinite matrix using bounded Bun...