507 SUBROUTINE csysvxx( FACT, UPLO, N, NRHS, A, LDA, AF, LDAF, IPIV,
508 $ equed, s, b, ldb, x, ldx, rcond, rpvgrw, berr,
509 $ n_err_bnds, err_bnds_norm, err_bnds_comp,
510 $ nparams, params, work, rwork, info )
518 CHARACTER EQUED, FACT, UPLO
519 INTEGER INFO, LDA, LDAF, LDB, LDX, N, NRHS, NPARAMS,
525 COMPLEX A( lda, * ), AF( ldaf, * ), B( ldb, * ),
526 $ x( ldx, * ), work( * )
527 REAL S( * ), PARAMS( * ), BERR( * ),
528 $ err_bnds_norm( nrhs, * ),
529 $ err_bnds_comp( nrhs, * ), rwork( * )
536 parameter ( zero = 0.0e+0, one = 1.0e+0 )
537 INTEGER FINAL_NRM_ERR_I, FINAL_CMP_ERR_I, BERR_I
538 INTEGER RCOND_I, NRM_RCOND_I, NRM_ERR_I, CMP_RCOND_I
539 INTEGER CMP_ERR_I, PIV_GROWTH_I
540 parameter ( final_nrm_err_i = 1, final_cmp_err_i = 2,
542 parameter ( rcond_i = 4, nrm_rcond_i = 5, nrm_err_i = 6 )
543 parameter ( cmp_rcond_i = 7, cmp_err_i = 8,
547 LOGICAL EQUIL, NOFACT, RCEQU
549 REAL AMAX, BIGNUM, SMIN, SMAX, SCOND, SMLNUM
554 REAL SLAMCH, CLA_SYRPVGRW
566 nofact = lsame( fact,
'N' )
567 equil = lsame( fact,
'E' )
568 smlnum = slamch(
'Safe minimum' )
569 bignum = one / smlnum
570 IF( nofact .OR. equil )
THEN
574 rcequ = lsame( equed,
'Y' )
585 IF( .NOT.nofact .AND. .NOT.equil .AND. .NOT.
586 $ lsame( fact,
'F' ) )
THEN
588 ELSE IF( .NOT.lsame(uplo,
'U') .AND.
589 $ .NOT.lsame(uplo,
'L') )
THEN
591 ELSE IF( n.LT.0 )
THEN
593 ELSE IF( nrhs.LT.0 )
THEN
595 ELSE IF( lda.LT.max( 1, n ) )
THEN
597 ELSE IF( ldaf.LT.max( 1, n ) )
THEN
599 ELSE IF( lsame( fact,
'F' ) .AND. .NOT.
600 $ ( rcequ .OR. lsame( equed,
'N' ) ) )
THEN
607 smin = min( smin, s( j ) )
608 smax = max( smax, s( j ) )
610 IF( smin.LE.zero )
THEN
612 ELSE IF( n.GT.0 )
THEN
613 scond = max( smin, smlnum ) / min( smax, bignum )
619 IF( ldb.LT.max( 1, n ) )
THEN
621 ELSE IF( ldx.LT.max( 1, n ) )
THEN
628 CALL xerbla(
'CSYSVXX', -info )
636 CALL csyequb( uplo, n, a, lda, s, scond, amax, work, infequ )
637 IF( infequ.EQ.0 )
THEN
641 CALL claqsy( uplo, n, a, lda, s, scond, amax, equed )
642 rcequ = lsame( equed,
'Y' )
649 IF( rcequ )
CALL clascl2( n, nrhs, s, b, ldb )
651 IF( nofact .OR. equil )
THEN
655 CALL clacpy( uplo, n, n, a, lda, af, ldaf )
656 CALL csytrf( uplo, n, af, ldaf, ipiv, work, 5*max(1,n), info )
667 $ rpvgrw = cla_syrpvgrw( uplo, n, info, a, lda, af,
668 $ ldaf, ipiv, rwork )
676 $ rpvgrw = cla_syrpvgrw( uplo, n, info, a, lda, af, ldaf,
681 CALL clacpy(
'Full', n, nrhs, b, ldb, x, ldx )
682 CALL csytrs( uplo, n, nrhs, af, ldaf, ipiv, x, ldx, info )
687 CALL csyrfsx( uplo, equed, n, nrhs, a, lda, af, ldaf, ipiv,
688 $ s, b, ldb, x, ldx, rcond, berr, n_err_bnds, err_bnds_norm,
689 $ err_bnds_comp, nparams, params, work, rwork, info )
694 CALL clascl2 (n, nrhs, s, x, ldx )
subroutine claqsy(UPLO, N, A, LDA, S, SCOND, AMAX, EQUED)
CLAQSY scales a symmetric/Hermitian matrix, using scaling factors computed by spoequ.
subroutine csytrs(UPLO, N, NRHS, A, LDA, IPIV, B, LDB, INFO)
CSYTRS
subroutine csyequb(UPLO, N, A, LDA, S, SCOND, AMAX, WORK, INFO)
CSYEQUB
subroutine xerbla(SRNAME, INFO)
XERBLA
subroutine csyrfsx(UPLO, EQUED, N, NRHS, A, LDA, AF, LDAF, IPIV, S, B, LDB, X, LDX, RCOND, BERR, N_ERR_BNDS, ERR_BNDS_NORM, ERR_BNDS_COMP, NPARAMS, PARAMS, WORK, RWORK, INFO)
CSYRFSX
subroutine csysvxx(FACT, UPLO, N, NRHS, A, LDA, AF, LDAF, IPIV, EQUED, S, B, LDB, X, LDX, RCOND, RPVGRW, BERR, N_ERR_BNDS, ERR_BNDS_NORM, ERR_BNDS_COMP, NPARAMS, PARAMS, WORK, RWORK, INFO)
CSYSVXX computes the solution to system of linear equations A * X = B for SY matrices ...
subroutine clascl2(M, N, D, X, LDX)
CLASCL2 performs diagonal scaling on a vector.
subroutine csytrf(UPLO, N, A, LDA, IPIV, WORK, LWORK, INFO)
CSYTRF
subroutine csycon(UPLO, N, A, LDA, IPIV, ANORM, RCOND, WORK, INFO)
CSYCON
subroutine clacpy(UPLO, M, N, A, LDA, B, LDB)
CLACPY copies all or part of one two-dimensional array to another.
real function cla_syrpvgrw(UPLO, N, INFO, A, LDA, AF, LDAF, IPIV, WORK)
CLA_SYRPVGRW computes the reciprocal pivot growth factor norm(A)/norm(U) for a symmetric indefinite m...
real function slamch(CMACH)
SLAMCH
logical function lsame(CA, CB)
LSAME