502 SUBROUTINE ssysvxx( FACT, UPLO, N, NRHS, A, LDA, AF, LDAF,
504 $ EQUED, S, B, LDB, X, LDX, RCOND, RPVGRW, BERR,
505 $ N_ERR_BNDS, ERR_BNDS_NORM, ERR_BNDS_COMP,
506 $ NPARAMS, PARAMS, WORK, IWORK, INFO )
513 CHARACTER EQUED, FACT, UPLO
514 INTEGER INFO, LDA, LDAF, LDB, LDX, N, NRHS, NPARAMS,
519 INTEGER IPIV( * ), IWORK( * )
520 REAL A( LDA, * ), AF( LDAF, * ), B( LDB, * ),
521 $ X( LDX, * ), WORK( * )
522 REAL S( * ), PARAMS( * ), BERR( * ),
523 $ err_bnds_norm( nrhs, * ),
524 $ err_bnds_comp( nrhs, * )
531 PARAMETER ( ZERO = 0.0e+0, one = 1.0e+0 )
532 INTEGER FINAL_NRM_ERR_I, FINAL_CMP_ERR_I, BERR_I
533 INTEGER RCOND_I, NRM_RCOND_I, NRM_ERR_I, CMP_RCOND_I
534 INTEGER CMP_ERR_I, PIV_GROWTH_I
535 parameter( final_nrm_err_i = 1, final_cmp_err_i = 2,
537 parameter( rcond_i = 4, nrm_rcond_i = 5, nrm_err_i = 6 )
538 parameter( cmp_rcond_i = 7, cmp_err_i = 8,
542 LOGICAL EQUIL, NOFACT, RCEQU
544 REAL AMAX, BIGNUM, SMIN, SMAX, SCOND, SMLNUM
549 REAL SLAMCH, SLA_SYRPVGRW
561 nofact = lsame( fact,
'N' )
562 equil = lsame( fact,
'E' )
563 smlnum = slamch(
'Safe minimum' )
564 bignum = one / smlnum
565 IF( nofact .OR. equil )
THEN
569 rcequ = lsame( equed,
'Y' )
580 IF( .NOT.nofact .AND. .NOT.equil .AND. .NOT.
581 $ lsame( fact,
'F' ) )
THEN
583 ELSE IF( .NOT.lsame(uplo,
'U') .AND.
584 $ .NOT.lsame(uplo,
'L') )
THEN
586 ELSE IF( n.LT.0 )
THEN
588 ELSE IF( nrhs.LT.0 )
THEN
590 ELSE IF( lda.LT.max( 1, n ) )
THEN
592 ELSE IF( ldaf.LT.max( 1, n ) )
THEN
594 ELSE IF( lsame( fact,
'F' ) .AND. .NOT.
595 $ ( rcequ .OR. lsame( equed,
'N' ) ) )
THEN
602 smin = min( smin, s( j ) )
603 smax = max( smax, s( j ) )
605 IF( smin.LE.zero )
THEN
607 ELSE IF( n.GT.0 )
THEN
608 scond = max( smin, smlnum ) / min( smax, bignum )
614 IF( ldb.LT.max( 1, n ) )
THEN
616 ELSE IF( ldx.LT.max( 1, n ) )
THEN
623 CALL xerbla(
'SSYSVXX', -info )
631 CALL ssyequb( uplo, n, a, lda, s, scond, amax, work,
633 IF( infequ.EQ.0 )
THEN
637 CALL slaqsy( uplo, n, a, lda, s, scond, amax, equed )
638 rcequ = lsame( equed,
'Y' )
644 IF( rcequ )
CALL slascl2( n, nrhs, s, b, ldb )
646 IF( nofact .OR. equil )
THEN
650 CALL slacpy( uplo, n, n, a, lda, af, ldaf )
651 CALL ssytrf( uplo, n, af, ldaf, ipiv, work, 5*max(1,n),
663 $ rpvgrw = sla_syrpvgrw(uplo, n, info, a, lda, af,
672 $ rpvgrw = sla_syrpvgrw( uplo, n, info, a, lda, af, ldaf,
677 CALL slacpy(
'Full', n, nrhs, b, ldb, x, ldx )
678 CALL ssytrs( uplo, n, nrhs, af, ldaf, ipiv, x, ldx, info )
683 CALL ssyrfsx( uplo, equed, n, nrhs, a, lda, af, ldaf, ipiv,
684 $ s, b, ldb, x, ldx, rcond, berr, n_err_bnds, err_bnds_norm,
685 $ err_bnds_comp, nparams, params, work, iwork, info )
690 CALL slascl2 ( n, nrhs, s, x, ldx )
subroutine ssyrfsx(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, iwork, info)
SSYRFSX
subroutine ssysvxx(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, iwork, info)
SSYSVXX